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

header error with pacbio data #6

Open
nbx0 opened this issue Feb 1, 2023 · 0 comments
Open

header error with pacbio data #6

nbx0 opened this issue Feb 1, 2023 · 0 comments

Comments

@nbx0
Copy link

nbx0 commented Feb 1, 2023

Hey Chienchi!

I hadn't realized it before but apparently amplicov is failing on our pacbio data due to header:

Error:

Traceback (most recent call last):
  File "/scicomp/groups-pure/sars2seq/miniconda/envs/snakemake/bin/amplicov", line 534, in <module>
    run(argvs)
  File "/scicomp/groups-pure/sars2seq/miniconda/envs/snakemake/bin/amplicov", line 501, in run
    cov_array = parse_bam_file(argvs.bam,argvs.pp, argvs.outdir, argvs.refID)
  File "/scicomp/groups-pure/sars2seq/miniconda/envs/snakemake/bin/amplicov", line 214, in parse_bam_file
    for line in pysam.samtools.depth("-aa","-d0", bam_input ,split_lines=True):
  File "/scicomp/groups-pure/sars2seq/miniconda/envs/snakemake/lib/python3.8/site-packages/pysam/utils.py", line 69, in __call__
    raise SamtoolsError(
pysam.utils.SamtoolsError: 'samtools returned with error 1: stdout=[], stderr=[\'samtools depth: Couldn\\\'t read header for "IRMA/3003752441_N8KHGVQF_SARS-CoV-2_sorted.bam": Broken pipe\']'

And the header in reference:

@SQ	SN:SARS-CoV-2	LN:29903
@PG	ID:minimap2	PN:minimap2	VN:2.9-r720	CL:minimap2 -a --secondary=no -t 1 -A 2 -B 5 -O 10 -E 1 /tmp/clarity/IRMAv1.0.4/_3003752441_N8KHGVQF-WZvI4XhBkKrFdQ1DIEgyyQfW0gSCi7Qu/ASSEMBLY/F1-SARS-CoV-2.ref /tmp/clarity/IRMAv1.0.4/_3003752441_N8KHGVQF-WZvI4XhBkKrFdQ1DIEgyyQfW0gSCi7Qu/ASSEMBLY/SARS-CoV-2_0001.fastq
@PG	ID:samtools	PN:samtools	PP:minimap2	VN:1.14	CL:/scicomp/groups-pure/sars2seq/prod/irma/IRMA_RES/scripts/samtools_Linux view -bS /tmp/clarity/IRMAv1.0.4/_3003752441_N8KHGVQF-WZvI4XhBkKrFdQ1DIEgyyQfW0gSCi7Qu/ASSEMBLY/F1-SARS-CoV-2.sam

Have you seen this error before and have any thoughts on fixing?

Thanks!
Ben

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