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

Erro: unmapped2anchors.py: error: no such option: -Q #3

Closed
Alipe2021 opened this issue Dec 6, 2021 · 6 comments
Closed

Erro: unmapped2anchors.py: error: no such option: -Q #3

Alipe2021 opened this issue Dec 6, 2021 · 6 comments

Comments

@Alipe2021
Copy link

When I run the command circompara2 it reported an error:

BYPASS = ['linear']: skipping linear transcript analysis
scons: done reading SConscript files.
scons: Building targets ...
unmapped2anchors.py -Q <( zcat samples/CK_BML1234_00h1/processings/circRNAs/CK_BML1234_00h1.unmappedSE.fq.gz ) | bowtie2 --seed 123 -p 16 --reorder --score-min=C,-15,0 -q -x /MaizeLab/auhpc1/DataBase/Species/Zea_Mays/B73v4/Bowtie2Index/genome.fa -U - 2> samples/CK_BML1234_00h1/processings/circRNAs/find_circ_out/bt2_secondpass.log | find_circ.py -G /MaizeLab/auhpc1/DataBase/Species/Zea_Mays/B73v4/zma_dna_v4.fa -p CK_BML1234_00h1_ -s samples/CK_BML1234_00h1/processings/circRNAs/find_circ_out/find_circ.log -R samples/CK_BML1234_00h1/processings/circRNAs/find_circ_out/sites.reads > samples/CK_BML1234_00h1/processings/circRNAs/find_circ_out/sites.bed
Usage:

  unmapped2anchors.py <alignments.bam> > unmapped_anchors.qfa

Extract anchor sequences from unmapped reads. Optionally permute.


unmapped2anchors.py: error: no such option: -Q
Traceback (most recent call last):
  File "/opt/biosoft/find_circ-1.2/find_circ.py", line 608, in <module>
    sam = pysam.Samfile('-','r')
  File "pysam/libcalignmentfile.pyx", line 741, in pysam.libcalignmentfile.AlignmentFile.__cinit__
  File "pysam/libcalignmentfile.pyx", line 990, in pysam.libcalignmentfile.AlignmentFile._open
ValueError: file has no sequences defined (mode='r') - is it SAM/BAM format? Consider opening with check_sq=False

gzip: stdout: Broken pipe
scons: *** [samples/CK_BML1234_00h1/processings/circRNAs/find_circ_out/sites.bed] Error 1
scons: building terminated because of errors.
@egaffo
Copy link
Owner

egaffo commented Dec 6, 2021

are you using the Docker container or did you install CirComPara2 in your environment?

@Alipe2021
Copy link
Author

I install CirComPara2 in a conda environment by the following steps:

conda create -n circompara2_py2_env -c conda-forge python=2.7
conda install -n circompara2_py2_env -c bioconda samtools bedtools hisat2 star
conda install -n circompara2_py2_env -c bioconda segemehl
source  activate circompara2_py2_env
git clone http://github.com/egaffo/circompara2
cd circompara2/
./src/utils/bash/install_circompara

@egaffo
Copy link
Owner

egaffo commented Dec 7, 2021

Unfortunately, I was not able to reproduce your error.
I installed circompara2 following your installation procedure and the circompara2 test run ended successfully.
Your error is quite weird. It seems that the unmapped2anchors.py script of the Find_circ tool (https://github.com/marvin-jens/find_circ) does not recognize its option :\
Moreover, it seems that there is an error in find_circ.py
Please, make sure you are running the Find_circ scripts installed with the circompara2 installation procedure (I see a call to /opt/biosoft/find_circ-1.2/find_circ.py, which appears not to be in the circompara2 directory).
Another check is related to the input FASTQ: check if the samples/CK_BML1234_00h1/processings/circRNAs/CK_BML1234_00h1.unmappedSE.fq.gz is not actually an empty file or not a FASTQ (GZIP compressed)

@Alipe2021
Copy link
Author

I tested the unmapped2anchors.py program, but i can't find the param '-Q':

图片

@egaffo
Copy link
Owner

egaffo commented Dec 8, 2021

You are calling an older version of find_circ (v1), possibly from some instance in your environment.
Update it to v1.2 https://github.com/marvin-jens/find_circ/releases/tag/v1.2, it has the -Q option.

@Alipe2021
Copy link
Author

Thanks. I upgraded the unmapped2anchors.py from the github master branch and solved it.

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