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

FASTA alignment index retrieval #28

Open
kullrich opened this issue May 4, 2018 · 0 comments
Open

FASTA alignment index retrieval #28

kullrich opened this issue May 4, 2018 · 0 comments

Comments

@kullrich
Copy link

kullrich commented May 4, 2018

Dear samtools,
I am working with FASTA alignments, which have different sequence names (aka chromosomes) but all of the same length.
No I needed to create a wrapper around samtools faidx to retrieve and append the single sequences into one output region (loop over all names in "cut -f 1 xxx.fai"; for each NAME do a faidx xxx.fa NAME:REGION").
Would it be possible to write a new function within faidx to extract the same REGION for all sequences in an indexed FASTA file? One would first need to check in the .fai file if all are the same length, if this is true one can go on and extract the same region in a while loop.
Thank you in anticipation
Kristian Ullrich

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

1 participant