Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with the format of priors input file #60

Open
ramandeepkaur0303 opened this issue Feb 7, 2023 · 1 comment
Open

problem with the format of priors input file #60

ramandeepkaur0303 opened this issue Feb 7, 2023 · 1 comment

Comments

@ramandeepkaur0303
Copy link

I am facing problem when I am running my own script. I have a gene expression file and a list of transcription factors. from this data, I made a prior file. But I am getting error as follows:

ValueError: Filtering results in 0-length index when filtering priors for gene list.

If I follow up, it means that after filtering priors genes for something, there are zero genes left. But the genes in my prior list match with the genes in the gene expression file plus the transcription factors are present in the prior gene list as well. So, the script is filtering the genes then I do not get how it left with 0-length index file.

I am afraid if my formatting my prior file correctly, kindly once walk me through that how should I create my priors file.

@asistradition
Copy link
Collaborator

asistradition commented Feb 7, 2023

The prior network file should be loaded as a tabular Genes x TFs matrix file, where the first row is the TF names and the first column is Gene names, and each non-zero value is a known network edge that connects the corresponding TF to the corresponding gene.

The error you're getting is specific to the gene names in the expression data file and the prior network file. If your prior file and expression data file have the same gene names, please provide the package version & full stack trace so that I can track the problem down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants