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

mirge3 gets killed #101

Open
lchall08 opened this issue Oct 3, 2024 · 5 comments
Open

mirge3 gets killed #101

lchall08 opened this issue Oct 3, 2024 · 5 comments

Comments

@lchall08
Copy link

lchall08 commented Oct 3, 2024

Running mirge3 on Rat samples: Goes through all the steps until novel miRNAs prediction and throws this error and stops.

Traceback (most recent call last):
File "/opt/conda/envs/mirge3/bin/miRge3.0", line 10, in
sys.exit(main())
^^^^^^
File "/opt/conda/envs/mirge3/lib/python3.12/site-packages/mirge/main.py", line 203, in main
predict_nmir(args, workDir, ref_db, base_names, pdUnmapped)
File "/opt/conda/envs/mirge3/lib/python3.12/site-packages/mirge/libs/novel_mir.py", line 424, in predict_nmir
generate_featureFiles(str(Path(outputdir2)), files, chrSeqDic, chrSeqLenDic, miRNAchrCoordivateDic, exactmiRNASeqDic)
File "/opt/conda/envs/mirge3/lib/python3.12/site-packages/mirge/libs/generate_featureFiles.py", line 226, in generate_featureFiles
features = clusterInstance.calculateFeature()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/mirge3/lib/python3.12/site-packages/mirge/classes/readCluster.py", line 320, in calculateFeature
neclueotideCountList = neclueotideCountList + [templateNucleotide, count_TemplateNucleotide_percentage, count_nonTemplateNucleotide_percentage, count_A_percentage, count_T_percentage, count_C_percentage, count_G_percentage]
^^^^^^^^^^^^^^^^^^
UnboundLocalError: cannot access local variable 'count_A_percentage' where it is not associated with a value

@arunhpatil
Copy link
Collaborator

Hi @lchall08,

I checked the error and it is wierd since count_A_percentage is pre-assigned.

  1. Can you check (the output) if the annotations and summary of miRNA reads are yielding abundant miRNAs, without (or prior to) Novel miRNA predictions.
  2. If adapters are not a problem in the previous step then I like to check the bug with your dataset. Can you share the file or subset which was used here? (Also, it would give more clarity if you could share the command used along with parameters, and you can rename your sample names if you choose).

Thank you,
Arun

@lchall08
Copy link
Author

lchall08 commented Oct 3, 2024

annotation.report.csv

See attached the annotation report.
This error is relatively new. I was previously able to run it successfully with a mouse dataset and this one is Rat so originally I thought it may be a bug in the library but nothing I can tell.

The code I used is:
miRge3.0 -s input.txt -db miRBase -lib /research/miRge3_Lib -on rat -cpu 50 -tcf -bam -o output -dex -mdt 1432_samplesheet_1.csv -a TGGAATTCTCGGGTGCCAAGG -NX -nmir

input.txt is just a list of all the fastqs

@arunhpatil
Copy link
Collaborator

Hi @lchall08,

The summary looks Ok. At this stage we wont know at which file's (samples') processing we encountered this error. Can you run them in batches to isolate the file that caused the error? and if you could share that file or subset, I can take a look at the bug.

Thank you,
Arun.

@lchall08
Copy link
Author

lchall08 commented Oct 4, 2024 via email

@arunhpatil
Copy link
Collaborator

Hi @lchall08,

I have used the Rat genome (9c537e8c369cfcb2c33f9bed3b9af2c1 rat.tar.gz => md5sum value) and was able to run miRge3.0 successfully. I suggest you download the reference and try the run again. You can also check for md5sum of the tar.gz file.

Also, I skipped the DEX at this point as I didn't have metadata. Can you try the same samples without DEX and let me know if it works.

The version of the packages used are listed below:

bowtie version: 1.2.3
cutadapt version: 4.2
Samtools version: 1.6
RNAfold version: 2.4.14

I guess that the Rat reference is not extracted fully. I am sending the output folder via gmail. Let me know how it works.

Thank you,
Arun.

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