tleonardi / nanocompore

RNA modifications detection from Nanopore dRNA-Seq data
https://nanocompore.rna.rocks
GNU General Public License v3.0
80 stars 12 forks source link

eventalign_collapse error #203

Closed rezarahman12 closed 2 years ago

rezarahman12 commented 2 years ago

I have done eventalignment of direct RNA-Seq data using nanopolish, and obtained file eventalign.txt file. Then I ran nanocompore for eventalignmnet collapse using the below script-

module load nanocompore/1.0.4

nanocompore eventalign_collapse \ -i /scratch/project_mnt/S0077/xPore/rawdata/xpore_data/nanopol/ko-rep1/eventalign.txt -o /scratch/project_mnt/S0077/xPore/rawdata/xpore_data/nanocompore/out

error obtained: nanocompore.SuperParser.SuperParserError: Required field read_name not found in files /scratch/project_mnt/S0077/xPore/rawdata/xpore_data/nanopol/ko-rep1/eventalign.txt

Screenshots image

could you please help me to fix this problem?

lmulroney commented 2 years ago

Could you also share a screen shot of the last few lines of the log file?

rezarahman12 commented 2 years ago

Thank you for your quick reply. Please find the screenshot of last few lines of the log file. image

lmulroney commented 2 years ago

Thanks for this. Last request to help debug this issue. Can you also share a screen shot of the first few lines of the nanopolish eventalign file?

rezarahman12 commented 2 years ago

Hi @lmulroney thank you again for your quick response. please find the first few lines of the eventalignment.txt file obtained through nanopolish. I do highly appreciate your time and help. Kind regards Reza image

lmulroney commented 2 years ago

Did you use the following three optional arguments when you ran nanopolish eventalign? --print-read-names --samples --scale-events

These three optional arguments in nanopolish are required for nanocompore to run properly.

Cheers, Logan

rezarahman12 commented 2 years ago

Hi Logan,

Thank you for your kind reply. I will give it a shot considering the above parameters, and let you know.

Kind regards Reza

rezarahman12 commented 2 years ago

Hi Logan (@lmulroney ),

I have now added your suggested options, --print-read-names --samples --scale-events , which worked well. Thank you so much for your great help.

Then, I have done the sampcomp step as well. The results section generated three files namely, out_sampcomp.log, outSampComp.db.dat, outSampComp.db.dir. Now, I'm facing another issue in the SampCompDB step as I'm not good at linux. I followed https://nanocompore.rna.rocks/demo/SampCompDB_usage/#Import-the-package. I have submitted a job in HPC using the below script.

!/bin/bash

PBS -A UQ-QBI

PBS -l select=1:ncpus=10:mem=50GB

PBS -e /scratch/project_mnt/S0077/xPore/rawdata/xpore_data/nanocompore/results

PBS -o /scratch/project_mnt/S0077/xPore/rawdata/xpore_data/nanocompore/results

PBS -l walltime=24:00:00

PBS -N result-table

cd $PBS_O_WORKDIR

module load nanocompore/1.0.4

SampCompDB (db_fn = "/scratch/project_mnt/S0077/xPore/rawdata/xpore_data/nanocompore/results/outSampComp.db", fasta_fn = "/scratch/project_mnt/S0077/xPore/Homo_sapiens.GRCh38.cdna.all.fa")

Now, I'm getting the below error: ########################### Execution Started ############################# JobId:927168.tinmgr2 UserName:s4613408 GroupName:qris-uq ExecutionHost:tn117c ############################################################################### /var/spool/pbs/mom_priv/jobs/927168.tinmgr2.SC: line 14: from: command not found /var/spool/pbs/mom_priv/jobs/927168.tinmgr2.SC: line 16: syntax error near unexpected token db_fn' /var/spool/pbs/mom_priv/jobs/927168.tinmgr2.SC: line 16:SampCompDB (db_fn = "/scratch/project_mnt/S0077/xPore/rawdata/xpore_data/nanocompore/results/outSampComp.db",'

Could you please help me to solve this problem as well? I will be very grateful to you as my current project needs to use nanocompore for my nanopore data analysis so need to be successful in learning nanocompore.

I'm very sorry to take your valuable time. I do highly appreciate your time and help. Kind regards Reza

keenhl commented 8 months ago

@rezarahman12 You have to write a python script to access SampCompDB.

lmulroney commented 8 months ago

Depending on what data you need from the DB, you can review the annotation here: https://nanocompore.rna.rocks/demo/SampCompDB_usage/

And if you need examples on how we access the data in the DB, you can review the code in SampCompDB.py