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

Use faidx file as genome file #580

Closed
jma1991 opened this issue Oct 9, 2017 · 3 comments
Closed

Use faidx file as genome file #580

jma1991 opened this issue Oct 9, 2017 · 3 comments

Comments

@jma1991
Copy link

jma1991 commented Oct 9, 2017

Version: bedtools v2.26.0-129-gc8b58bc

I'd like to use the faidx file produced by samtools as the genome file for bedtools. The first two columns of the faidx file are those in the genome file. Some of the bedtools commands accept the faidx file (shift, slop, flank, sort, random, shuffle, multiinter, bedtobam) without modification, and others require that the file is strictly two columns (intersect, closest, coverage, map, complement, subtract, jaccard). The error produced by these commands is the following:

Error: The genome file mm10.fasta.fai has no valid entries. Exiting.

It would be helpful if you could make this behaviour consistent. Personally I think it would be helpful to just allow usage of the faidx file with all commands. It saves having to create a separate genome file, or cutting those columns out of the faidx file in a pipe.

@arq5x
Copy link
Owner

arq5x commented Oct 13, 2017

I completely agree - there are two sets of "GenomeFile" code, and I will do my best to integrate them asap.

@arq5x
Copy link
Owner

arq5x commented Oct 13, 2017

This has been fixed and pushed to master.

@arq5x arq5x closed this as completed Oct 13, 2017
@jma1991
Copy link
Author

jma1991 commented Oct 13, 2017

That's great, thank you very much 👍

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