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

[Help needed] Unable to process a chr6-only BAM file #107

Open
kristineding98 opened this issue Nov 30, 2023 · 1 comment
Open

[Help needed] Unable to process a chr6-only BAM file #107

kristineding98 opened this issue Nov 30, 2023 · 1 comment

Comments

@kristineding98
Copy link

I mapped my data to hg38 (reference is whole genome) and truncated a sub-dataset of only chr6 entries with following comment:

samtools view -b -h sample_sorted.bam chr6 > sample_sorted_chr6.bam

When feeding the only-chr6 BAM file into the HLA-LA, I got the following error code after the 'Extract unmapped reads... ' checkpoint:

Using /opt/conda/envs/hla-la/opt/hla-la/src/additionalReferences/PRG_MHC_GRCh38_withIMGT/Illumina_B38.txt as reference file.
Extract reads from 1 regions...
Extract unmapped reads...
[main_samview] fail to read the header from "-".
Extraction command /opt/conda/envs/hla-la/bin/samtools view -@ 6  sample_sorted_chr6.bam '*' | awk '{if ($3 == "*") print $0}' | /opt/conda/envs/hla-la/bin/samtools view -bo /users/ding/hla/clean/sample_chr6/extraction_unmapped.bam - failed at /opt/conda/envs/hla-la/bin/HLA-LA.pl line 420.

Issue seems to be similar to #88, but still different.

Any help would be appreciated.

@kristineding98 kristineding98 changed the title Unable to process a chr6-only BAM file [Help needed] Unable to process a chr6-only BAM file Nov 30, 2023
@kristineding98
Copy link
Author

kristineding98 commented Nov 30, 2023

My initiative for doing this truncation is that though HLA-LA is working fine with the full BAM file before chr6 truncation, the processing time was long.

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