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

Allow for bam download #7

Open
FriederikeHanssen opened this issue Mar 23, 2021 · 0 comments
Open

Allow for bam download #7

FriederikeHanssen opened this issue Mar 23, 2021 · 0 comments

Comments

@FriederikeHanssen
Copy link

A lot of SRA data is actually stored in bams. This can be downloaded with the sea toolkit as well, but needs to use

sam-dump

instead.

The complete command would look sth like this:

prefetch -v $i
sam-dump $i | samtools view -bS - > $i.bam;

The samtools step directly converts the sam to bam for efficiency reasons. $i is the respective accession number

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