YeoLab / eCLIP

Other
38 stars 26 forks source link

Problem in 'Input normalzation' #8

Closed dahun73 closed 4 years ago

dahun73 commented 4 years ago

Hello.

I have problems and some questions for eCLIP-seq data analyzing.

Now I'm trying to input normalization after Clipper peak calling, but error message came out like this: image Use of uninitialized value $strand in concatenation (.) or string at /usr/bin/overlap_peakfi_with_bam_PE.pl line 401, line 208867. R1 strand error 83

I don't understand exactly about R1 strand error. Actually, I tried to start at Clipper stage. Maybe I think the BAM files were not made well. Would you tell me what I should do?

Because eCLIP pipelines was made by python or perl scripts, it is hard to fit this environment and input file format.

How can I try this whole process without using script? just using linux shell command each step.

Thank you.

byee4 commented 4 years ago

This appears to be the paired-end protocol? The error that I'm seeing is that input normalization is finding read1 which should have been filtered prior to Clipper. This is done because it is read2 that is enriched for termination at the crosslinked site. In pipeline-terms this step corresponds to samtools-viewr2.cwl, however if you are running commands separately, this step should be run prior to Clipper and input-normalization:

samtools view \
-f 128 \
-b \
-o EXAMPLE_PE.rep2_clip.C01.r1.fq.genome-mappedSo.rmDupSo.merged.r2.bam \
EXAMPLE_PE.rep2_clip.C01.r1.fq.genome-mappedSo.rmDupSo.merged.bam