```nextflow run nf-core/riboseq -profile docker --...
# riboseq
m
Copy code
nextflow run nf-core/riboseq -profile docker --input Sample_sheet.csv --outdir Riboseq_out --genome mm10 --trimmer fastp
ERROR ~ Error executing process > 'NFCORE_RIBOSEQRIBOSEQFASTQ_ALIGN_STAR:STAR_ALIGN (Treated)' Caused by: Process
NFCORE_RIBOSEQ:RIBOSEQ:FASTQ_ALIGN_STAR:STAR_ALIGN (Treated)
terminated with an error exit status (105) Command executed: STAR \ --genomeDir star \ --readFilesIn input1/Treated_1.non_rRNA.fastq.gz input2/Treated_2.non_rRNA.fastq.gz \ --runThreadN 12 \ --outFileNamePrefix Treated. \ \ --sjdbGTFfile genome.filtered.gtf \ --outSAMattrRGline 'ID:Treated' 'SM:Treated' \ --alignSJDBoverhangMin 1 --alignEndsType EndToEnd --outFilterMultimapNmax 20 --outSAMattributes All --outSAMstrandField intronMotif --outSAMtype BAM Unsorted --quantMode TranscriptomeSAM --quantTranscriptomeBan Singleend --readFilesCommand zcat --runRNGseed 0 --twopassMode Basic if [ -f Treated.Unmapped.out.mate1 ]; then mv Treated.Unmapped.out.mate1 Treated.unmapped_1.fastq gzip Treated.unmapped_1.fastq fi if [ -f Treated.Unmapped.out.mate2 ]; then mv Treated.Unmapped.out.mate2 Treated.unmapped_2.fastq gzip Treated.unmapped_2.fastq fi cat <-END_VERSIONS versions.yml "NFCORE_RIBOSEQRIBOSEQFASTQ_ALIGN_STAR:STAR_ALIGN": star: $(STAR --version | sed -e "s/STAR_//g") samtools: $(echo $(samtools --version 2>&1) | sed 's/^.*samtools //; s/Using.*$//') gawk: $(echo $(gawk --version 2>&1) | sed 's/^.*GNU Awk //; s/, .*$//') END_VERSIONS Command exit status: 105 Command output: STAR --genomeDir star --readFilesIn input1/Treated_1.non_rRNA.fastq.gz input2/Treated_2.non_rRNA.fastq.gz --runThreadN 12 --outFileNamePrefix Treated. --sjdbGTFfile genome.filtered.gtf --outSAMattrRGline ID:Treated SM:Treated --alignSJDBoverhangMin 1 --alignEndsType EndToEnd --outFilterMultimapNmax 20 --outSAMattributes All --outSAMstrandField intronMotif --outSAMtype BAM Unsorted --quantMode TranscriptomeSAM --quantTranscriptomeBan Singleend --readFilesCommand zcat --runRNGseed 0 --twopassMode Basic STAR version: 2.7.10a compiled: 2022-01-14T185000-05:00 :/home/dobin/data/STAR/STARcode/STAR.master/source Mar 15 023416 ..... started STAR run Mar 15 023416 ..... loading genome Command error: STAR --genomeDir star --readFilesIn input1/Treated_1.non_rRNA.fastq.gz input2/Treated_2.non_rRNA.fastq.gz --runThreadN 12 --outFileNamePrefix Treated. --sjdbGTFfile genome.filtered.gtf --outSAMattrRGline ID:Treated SM:Treated --alignSJDBoverhangMin 1 --alignEndsType EndToEnd --outFilterMultimapNmax 20 --outSAMattributes All --outSAMstrandField intronMotif --outSAMtype BAM Unsorted --quantMode TranscriptomeSAM --quantTranscriptomeBan Singleend --readFilesCommand zcat --runRNGseed 0 --twopassMode Basic STAR version: 2.7.10a compiled: 2022-01-14T185000-05:00 :/home/dobin/data/STAR/STARcode/STAR.master/source Mar 15 023416 ..... started STAR run Mar 15 023416 ..... loading genome EXITING because of FATAL ERROR: Genome version: 20201 is INCOMPATIBLE with running STAR version: 2.7.10a SOLUTION: please re-generate genome from scratch with running version of STAR, or with version: 2.7.4a Mar 15 023416 ...... FATAL ERROR, exiting Work dir: /media/manoj/Data/Manoj/Riboseq/work/cb/62ddc13bd0836e9601e1929b6abe68 Container: quay.io/biocontainers/mulled-v2-1fa26d1ce03c295fe2fdcf85831a92fbcbd7e8c2:ded3841da0194af2701c780e9b3d653a85d27489-0 Tip: when you have fixed the problem you can continue the execution adding the option
-resume
to the run command line -- Check '.nextflow.log' file for details is there any way to change the start index. because I'm facing an issue with it. enclosed my log file for more detailed error
i
hello, this looks like an incompatibility between the STAR version used for igenomes mm10 and the STAR version in the container i.e
2.7.10a
. For now you can just provide as input only the GTF and FASTA files, but not the STAR index, and the pipeline will generate a new STAR index during execution from your annotation files.
m
I did not Provide any input file. For star index
i
You provided the mm10 with the genome flag. That loads the star_genome pre-generated in igenomes. Check the documentation and the igenomes.config file provided with the code.
m
Thank you will look into it
Copy code
sudo nextflow run nf-core/riboseq -profile docker \
  --input Sample_sheet.csv \
  --outdir Riboseq_out \
  --fasta Ref/mm10.fa --gtf Ref/mm10.ucsc.gtf \
  --trimmer fastp
Based on your suggestion, I have used the following code:. The RefSeq was downloaded from the refgenie site. The pipeline is running. will update you once is done or shows any error, @Ira Iosub
Thanks @Ira Iosub the alignment issue is sorted out. Now it's a new error at the ribotricer step Caused by: Process
NFCORE_RIBOSEQ:RIBOSEQ:RIBOTRICER_DETECTORFS (Treated)
terminated with an error exit status (1) Command executed: ribotricer detect-orfs \ --bam Treated.genome.sorted.bam \ --ribotricer_index null_candidate_orfs.tsv \ --prefix Treated \ \ cat <<-END_VERSIONS > versions.yml "NFCORE_RIBOSEQRIBOSEQRIBOTRICER_DETECTORFS": ribotricer: $(ribotricer --version 2>&1 | grep ribotricer | sed '1!d ; s/ribotricer, version //') END_VERSIONS Command exit status: 1 Command output: Mar 15 235802 ..... started ribotricer detect-orfs Mar 15 235802 ... started parsing ribotricer index file Mar 15 235805 ... started inferring experimental design Mar 15 235805 ... started reading bam file Mar 15 235805 ... started plotting read length distribution Mar 15 235806 ... started calculating metagene profiles. This may take a long time... Mar 15 235806 ... started plotting metagene profiles Mar 15 235806 ... started inferring P-site offsets Command error: 0%| | 0/59576 [00:00<?, ?lines/s]Mar 15 235802 ..... started ribotricer detect-orfs Mar 15 235802 ... started parsing ribotricer index file 2%|▏ | 986/59576 [0000&lt;0005, 9856.53lines/s] 6%|▋ | 3795/59576 [0000&lt;0002, 20579.43lines/s] 10%|▉ | 5854/59576 [0000&lt;0003, 17519.60lines/s] 14%|█▍ | 8568/59576 [0000&lt;0002, 20919.04lines/s] 18%|█▊ | 10723/59576 [0000&lt;0002, 17138.57lines/s] 23%|██▎ | 13471/59576 [0000&lt;0002, 20043.86lines/s] 26%|██▌ | 15618/59576 [0000&lt;0002, 16193.27lines/s] 30%|███ | 18145/59576 [0000&lt;0002, 18413.67lines/s] 34%|███▍ | 20184/59576 [0001&lt;0002, 14606.76lines/s] 39%|███▊ | 22962/59576 [0001&lt;0002, 17532.13lines/s] 44%|████▍ | 26327/59576 [0001&lt;0001, 21414.78lines/s] 48%|████▊ | 28767/59576 [0001&lt;0001, 16143.89lines/s] 53%|█████▎ | 31422/59576 [0001&lt;0001, 18330.20lines/s] 57%|█████▋ | 34107/59576 [0001&lt;0001, 20272.94lines/s] 62%|██████▏ | 37135/59576 [0001&lt;0000, 22753.15lines/s] 67%|██████▋ | 39683/59576 [0002&lt;0001, 15775.27lines/s] 71%|███████▏ | 42556/59576 [0002&lt;0000, 18375.05lines/s] 76%|███████▋ | 45530/59576 [0002&lt;0000, 20907.19lines/s] 81%|████████▏ | 48548/59576 [0002&lt;0000, 23143.56lines/s] 86%|████████▌ | 51204/59576 [0002&lt;0000, 14599.83lines/s] 91%|█████████ | 54248/59576 [0002&lt;0000, 17484.33lines/s] 96%|█████████▌| 57340/59576 [0003&lt;0000, 20257.99lines/s] Mar 15 235805 ... started inferring experimental design Mar 15 235805 ... started reading bam file 0%| | 0/8889 [00:00<?, ?reads/s] 54%|█████▍ | 4833/8889 [0000&lt;0000, 48298.84reads/s] 0read-length [00:00, ?read-length/s] Mar 15 235805 ... started plotting read length distribution Mar 15 235806 ... started calculating metagene profiles. This may take a long time... WARNING: no periodic read length found... using cutoff 0.428571428571 Mar 15 235806 ... started plotting metagene profiles Mar 15 235806 ... started inferring P-site offsets Work dir: /media/manoj/Data/Manoj/Riboseq/work/d3/83687b5b8e46995925a2b756afe99b Container: quay.io/biocontainers/ribotricer:1.3.3--pyhdfd78af_0 Tip: when you have fixed the problem you can continue the execution adding the option
-resume
to the run command line -- Check '.nextflow.log' file for details
m
Hi @Manojkumar K have you managed to sort this out? I have the same problem
no periodic read length found
Thanks
j
Hi @Miriam, typically this kind of error comes about due to sample mix ups where you try to run detection methods on RNA-Seq data rather than Ribo-Seq. The other option is that you may not have correctly trimmed your reads and the addition bases from the adapter/umi prevent periodic signal. The other possibility is that your data was produced with a protocol that uses a less aggressive RNase digestion using something like MNase. This won't produce data with high periodicity when using typical workflows but you could look into the methods produced by Michael VanInseberghe in his single cell ribo-seq work or the tool 'psite' https://www.biorxiv.org/content/10.1101/2023.06.27.546788v1
m
Hi @Jack Tierney Thank you for your quick response. I've been told that they have prepared RiboSeq with a kit, but I don't know which one, so it's unlikely that it's an RNASeq mix up. The error is generated by the pipeline, so the trimming performed is the default. I'll dig deeper with my collaborator thank you!
j
Have a look at the earlier reports like FastQC or TrimGalore!. It'll give you quick answers. If you need a hand interpretting them I can have a look and talk you through what I'd look at
m
@Jack Tierney I'd love to take up you offer of what to look on the QC reports. I can see that after trimming I get a bimodal sequence length distribution with a major peak around 34-25 bps and a minor peak at 28-29. There's no adapter content, but there are overrepresented sequences that map to yeast ribosomal rRNAs. I'm unsure what else to look at. Thanks
j
You may just have rRNA contamination then. You will see in the main channel that Jonathan and others are working on a new version with RiboDetector as an option. It may be worth waiting until that is integrated. Out of interest, how did sortMeRNA do on removing rRNA from your samples?
m
I'm unsure as I'm no familiar with the output.
I wonder why the pipeline doesn't do an initial step whereby you align against rRNA and use the unmapped reads to proceed downstream.
j
Well thats the role that sortMeRNA does. We have been discussing the addition of RiboDetector and alternately bowtie2 as additional methods
My hope would be that cleaning up more of the rRNA contamination using RiboDetector might improve things but it likely doesnt explain such poor periodicity. @Ira Iosub will likely have wiser advice but theres a chance its just a low periodicity sample..
m
It looks like the mapping was also quite low 29% with ~60% of reads unmapped.
Copy code
Started job on |	Nov 28 12:20:10
                             Started mapping on |	Nov 28 12:30:49
                                    Finished on |	Nov 28 12:43:29
       Mapping speed, Million of reads per hour |	373.69

                          Number of input reads |	78889821
                      Average input read length |	27
                                    UNIQUE READS:
                   Uniquely mapped reads number |	23014529
                        Uniquely mapped reads % |	29.17%
                          Average mapped length |	27.82
                       Number of splices: Total |	5899998
            Number of splices: Annotated (sjdb) |	5621977
                       Number of splices: GT/AG |	5875647
                       Number of splices: GC/AG |	4469
                       Number of splices: AT/AC |	1348
               Number of splices: Non-canonical |	18534
                      Mismatch rate per base, % |	0.99%
                         Deletion rate per base |	0.00%
                        Deletion average length |	2.32
                        Insertion rate per base |	0.00%
                       Insertion average length |	1.11
                             MULTI-MAPPING READS:
        Number of reads mapped to multiple loci |	9358060
             % of reads mapped to multiple loci |	11.86%
        Number of reads mapped to too many loci |	21199
             % of reads mapped to too many loci |	0.03%
                                  UNMAPPED READS:
  Number of reads unmapped: too many mismatches |	78
       % of reads unmapped: too many mismatches |	0.00%
            Number of reads unmapped: too short |	7255559
                 % of reads unmapped: too short |	9.20%
                Number of reads unmapped: other |	39240396
                     % of reads unmapped: other |	49.74%
                                  CHIMERIC READS:
                       Number of chimeric reads |	0
                            % of chimeric reads |	0.00%
i
Based on that log it looks~46% of your reads are rRNA. But these were removed by sortmerna. So your remaining reads somehow still don’t satisfy periodicity - either because there’s still contaminants left, or the footprints themselves don’t look like they satisfy periodicity. Do you know if this library was produced with RNAse I?
m
what's strange, is that with an in-house script to align first to rRNA and then to the same yeast reference that I'm using with the pipeline, I do see certain periodicity.
j
Ira, based on the params we use for STAR the low mapping could be explained by UMI, barcodes, adapters still on the reads right?
👍 1
m
Ira, I don't know, I can ask my collaborator. I know we don't have UMIs on the data but I'll ask about the use of RNAse I.
j
Miriam that looks pretty periodic to me. What is _fa?
i
Yepp if there’s any/ too many bases leftover from adaptors (or UMIs) or even non templated bases our end to end mapping and settings will hit them pretty hard. So I would definitely first check the reads are preprocessed correctly
m
formaldehyde treatment at low conc, my collaborator wanted to see if he could get rid off the biass that you see with chx around the ATG
Happy to check that the reads are preprocessed correctly, but what should I look for? sorry this is all new to me, and I'm unsure of what to look for.
i
I think in this case one of the easiest things would be to take the BAMs outputs from this pipeline , not your custom script ones, and see if you can replicate the periodicity around the AUG as in your plot. This will tell us if at least the successfully mapped reads are any good
👍 1
If even those don’t show periodicity it’s worth checking if your kit’s trimming settings are correctly applied to this pipeline
In the run script shared in the channel I don’t see any extra trimgalore arguments for instance. Maybe for your library design some custom arguments are needed
m
My collaborator says that he is using RNAse I
Sorry it took me so long to get back, but I have not been able to look at this until today. I have run my script with the bam files that the nfcore pipeline outputs and here's what I get. I'm attaching plots the one generated with our "in house" scritps (left) and the one on the right is using the bamfiles from the nfcore pipeline. The second one doesn't look as clean as the first, but it still shows periodicity. I don't understand why the strongest signal is not on ATG and (For some reason I don't have all the bam files from the pipeline so I can only plot two samples.)
I've checked que kit trimming pre-requisites(chrome-extension://efaidnbmnnnibpcajpcglclefindmkaj/https://resources.revvity.com/pdfs/man-nextflex-small-rna-trimming-instructions.pdf), it doesn't look very different from the default but I'm re-running it now specifying what it says below:
Copy code
1. Trim 3’ adapter: cutadapt \
--cores 0 \
--quality-cutoff 20 \
--adapter TGGAATTCTCGGGTGCCAAGG \
--output YOUR_FILE.cut.fastq \
--minimum-length 16 \
YOUR_FILE.fastq.gz
Again, any input/help would be greatly appreciated. Thanks!
s
Slackbot trigger words: -
/help
/
\help
-
markdownhelp
-
moreinfo
/
moredetails
-
conda channels
/
bioconda channels
-
newpipeline
-
changeemail
-
slack theme
-
gif of the week
-
BINGO!
-
There should not have been any compilation from this call.