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

No module named 'arg_parser' #19

Open
charliechen912ilovbash opened this issue Sep 2, 2020 · 6 comments
Open

No module named 'arg_parser' #19

charliechen912ilovbash opened this issue Sep 2, 2020 · 6 comments

Comments

@charliechen912ilovbash
Copy link

Hi, I have followed the installation steps, but when I run "GenomonSV parse", it showed the following error:

Traceback (most recent call last):
  File "/bins/miniconda3/envs/np_qc/bin/GenomonSV", line 5, in <module>
    from genomon_sv import main
  File "/bins/miniconda3/envs/np_qc/lib/python3.6/site-packages/genomon_sv/__init__.py", line 3, in <module>
    from arg_parser import create_parser
ModuleNotFoundError: No module named 'arg_parser'

Could you tell me how to fix this? Thanks!

@ken0-1n
Copy link
Contributor

ken0-1n commented Sep 4, 2020

Hi, thank you for your interest in GenomonSV.

I have tested the latest GenomonSV after cloning it with git clone and did not get the ModuleNotFoundError.

Please try again using the latest version of GenomonSV.
If you have any errors or questions, please let me know.

@charliechen912ilovbash
Copy link
Author

Thanks for your reply! I found out that the Ubuntu version could be one of the reason caused this error.
I first installed GenomonSV in the latest version of Ubuntu (probably is 20.04) with singularity, then I tried to installed 16.04 as the Dockerfile and everything seems good. Maybe it's because of the version of python, I'm not pretty sure.

Hi, thank you for your interest in GenomonSV.

I have tested the latest GenomonSV after cloning it with git clone and did not get the ModuleNotFoundError.

Please try again using the latest version of GenomonSV.
If you have any errors or questions, please let me know.

@charliechen912ilovbash
Copy link
Author

charliechen912ilovbash commented Sep 4, 2020

By the way, it will be very helpful if you could provide some example commands to complete the full GenomonSV pipeline, including normal and tumor sample groups. Moreover, how do the gene.bed and exon.bed files look like, could you provides some examples? Thank you!

@charliechen912ilovbash
Copy link
Author

In the "GenomonSV filt" step, you mentioned the "annotation_dir", but there seems no this option?

@ken0-1n
Copy link
Contributor

ken0-1n commented Sep 8, 2020

Hi, sorry for the late response, and thank you for the information that GenomonSV does not work with the latest version of Ubuntu in Dockerfile.
I'm glad to hear that GenomonSV worked.

By the way, it will be very helpful if you could provide some example commands to complete the full GenomonSV pipeline, including normal and tumor sample groups.

We provide the example commands to complete the full GenomonSV pipeline.

# Step 1 parse

GenomonSV \
    parse \
    ${INPUT_BAM} \
    ${OUTPUT_DIR}/${SAMPLE}
    
# Step 2 make control_info.txt (manual)

cat ${CONTROL_NAME}.control_info.txt
SampleNormal1	${OUTPUT_DIR}/SampleNormal1
SampleNormal2	${OUTPUT_DIR}/SampleNormal2
SampleNormal3	${OUTPUT_DIR}/SampleNormal3
SampleNormal4	${OUTPUT_DIR}/SampleNormal4
SampleNormal5	${OUTPUT_DIR}/SampleNormal5
...(omitted)...
SampleNormalN	${OUTPUT_DIR}/SampleNormalN

# Step 3 merge
    
GenomonSV \
    merge \
    ${CONTROL_NAME}.control_info.txt \
    ${CONTROL_NAME}.merged.junction.control.bedpe.gz 

# Step 4 filt

GenomonSV \
    filt \
    ${TUMOR_BAM} \
    ${TUMOR_SV_DIR}/${TUMOR_SAMPLE} \
    ${REFERENCE} \
    --matched_control_bam ${NORMAL_BAM} \
    --matched_control_label ${NORMAL_SAMPLE} \
    --non_matched_control_junction {CONTROL_NAME}.merged.junction.control.bedpe.gz \
    --min_junc_num 2 --max_control_variant_read_pair 10 --min_overhang_size 30
    
# Step 5 sv_utils filt (additional)

sv_utils \
    filter \
    ${TUMOR_SV_DIR}/${TUMOR_SAMPLE}.genomonSV.result.txt \
    ${TUMOR_SV_DIR}/${TUMOR_SAMPLE}.genomonSV.result.filt.txt \
    --min_tumor_allele_freq 0.07 --max_control_variant_read_pair 1 --control_depth_thres 10 --inversion_size_thres 1000

@ken0-1n
Copy link
Contributor

ken0-1n commented Sep 8, 2020

Moreover, how do the gene.bed and exon.bed files look like, could you provides some examples? Thank you!

Please install annot_utils, and then the gene.bed and exon.bed files will be downloaded and prepared automatically. Users don't need to worry about entering these files. So the annotation_dir option is no longer needed.

pip install annot_utils

We have removed the annotation_dir option.
We will try to brush up the documents...

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