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

"Reason: 'IOError('bad message length',)'Preprocessing segment chr12_start_109725923_end_109726043 in pyloh " #9

Open
ArshiyaG opened this issue Oct 23, 2020 · 3 comments

Comments

@ArshiyaG
Copy link

Hey,
I ran PyLOH for tumor-normal samples and took almost 20 hours but with an error message given below . I also don't find the output files in th given path.
Please help me

"Reason: 'IOError('bad message length',)'Preprocessing segment chr12_start_109725923_end_109726043 in pyloh "

Thanks in Advance
Arshiya

@yil8
Copy link
Collaborator

yil8 commented Oct 29, 2020

@ArshiyaG Sorry, but the information you provided is too little for me to give any feedback. Can you take a look at this issue #2 and reframe your problem here? Thanks

@ArshiyaG
Copy link
Author

The below mentioned was the command given :

python2 PyLOH.py preprocess /home/hg19.fa /root/Normal-NO.bam /root/Tumor-TO.bam Tumor-Normal --segments_bed /home/xgen-exome-research-panel-probesbe255a1532796e2eaa53ff00001c1b3c.bed --min_depth 20 --min_base_qual 10 --min_map_qual 10 --process_num 10 --WES

After preprocessing the segements, I got an error : Reason: 'IOError('bad message length',)'Preprocessing segment chr12_start_109725923_end_109726043

Thanks in Advance
Arshiya

@yil8
Copy link
Collaborator

yil8 commented Nov 2, 2020

@ArshiyaG can you copy paste the full error message printed from screen? like #2

Loading segments by 22 autosomes...
Preprocessing segment chr1_start_0_end_249250621...
Preprocessing segment chr2_start_0_end_243199373...
Preprocessing segment chr3_start_0_end_198022430...
Preprocessing segment chr4_start_0_end_191154276...
Preprocessing segment chr5_start_0_end_180915260...
Preprocessing segment chr6_start_0_end_171115067...
Preprocessing segment chr7_start_0_end_159138663...
Preprocessing segment chr8_start_0_end_146364022...
Preprocessing segment chr9_start_0_end_141213431...
Preprocessing segment chr10_start_0_end_135534747...
Traceback (most recent call last):
  File "/home/klrl262/miniconda/envs/bcbio-test/bin/PyLOH.py", line 110, in <module>
    args.func(args)
  File "/home/klrl262/miniconda/envs/bcbio-test/lib/python2.7/site-packages/pyloh/preprocess/run_preprocess.py", line 51, in run_preprocess
Preprocessing segment chr11_start_0_end_135006516...
    converter.convert()
  File "/home/klrl262/miniconda/envs/bcbio-test/lib/python2.7/site-packages/pyloh/preprocess/run_preprocess.py", line 98, in convert
    counts_tuple_list = pool.map(process_by_segment, args_list)
  File "/home/klrl262/miniconda/envs/bcbio-test/lib/python2.7/multiprocessing/pool.py", line 251, in map
Preprocessing segment chr12_start_0_end_133851895...
    return self.map_async(func, iterable, chunksize).get()
  File "/home/klrl262/miniconda/envs/bcbio-test/lib/python2.7/multiprocessing/pool.py", line 558, in get
    raise self._value
AttributeError: 'pysam.calignmentfile.PileupRead' object has no attribute 'qpos'

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