Hello, here is the command I am using: ```nextflo...
# sarek
a
Hello, here is the command I am using:
Copy code
nextflow run /scratch/asmab/nf-core/nf-core-sarek_3.5.1/3_5_1 \
	--input samplesheet_half.csv \
	--outdir ${OUTDIR} \
	-c obcf-graham.cfg \
	--wes \
	--tools mutect2,strelka,cnvkit,vep \
	--genome GATK.GRCh38 \
	--igenomes_base ${RESOURCES} \
	--intervals intervals_sorted.bed \
	-plugins nf-schema@2.3.0 \
	--nucleotides_per_second 600000 \
	--cf_chrom_len control_freec_hg38_custom.len
For cnvkit results I get the following results:
Copy code
cnvkit.reference.antitarget-tmp.bed  cnvkit.reference.target-tmp.bed  OV1369_R2_P66.antitargetcoverage.cnn  OV1369_R2_P66.targetcoverage.cnn
However, earlier when I ran the same dataset without the intervals file, I get many more files in cnvkit output:
Copy code
OV1369_R2_P66.antitargetcoverage.cnn  OV1369_R2_P66.cns              OV1369_R2_P66.germline.call.cns   wgs_calling_regions_noseconds.hg38.antitarget.bed
OV1369_R2_P66.bintest.cns             OV1369_R2_P66.cnvcall.vcf      OV1369_R2_P66-scatter.png         wgs_calling_regions_noseconds.hg38.target.bed
OV1369_R2_P66.call.cns                OV1369_R2_P66-diagram.pdf      OV1369_R2_P66.targetcoverage.cnn
OV1369_R2_P66.cnr                     OV1369_R2_P66.genemetrics.tsv  reference.cnn
Here is the samplesheet (i have tumor only samples):
Copy code
patient,sample,lane,bam,sex,status
OV1369_R2_P66,OV1369_R2_P66,6,/project/def-dcook/active/ovcan_gq/ammmasson_OvCAN_WES_bioinformatics_analysis_R004741/bam/OV1369(R2)_P66.bam,XX,1
OV2085_P64,OV2085_P64,7,/project/def-dcook/active/ovcan_gq/ammmasson_OvCAN_WES_bioinformatics_analysis_R004741/bam/OV2085_P64.bam,XX,1
OV2295_P61,OV2295_P61,5,/project/def-dcook/active/ovcan_gq/ammmasson_OvCAN_WES_bioinformatics_analysis_R004741/bam/OV2295_P61.bam,XX,1
I was hoping to understand why is there a difference in the number of files? Please note, both pipeline runs were successful.
Here is the cnvkit batch command within the owrk directory:
Copy code
samtools view -T Homo_sapiens_assembly38.fasta --fai-reference Homo_sapiens_assembly38.fasta.fai OV2085_P64.recal.cram -@ 2 -o OV2085_P64.recal.bam
samtools index OV2085_P64.recal.bam


cnvkit.py \
    batch \
    OV2085_P64.recal.bam \
     \
     \
    --reference cnvkit.reference.cnn \
     \
    --processes 2 \
    --method hybrid --diagram --scatter
t
I don't really know all that much about CNVkit, but it looks like perhaps it ran in WGS mode without the intervals file, which is very different from WES mode ... Maybe look at the CNVkit documentation for what the results should look like in each mode.
a
Not sure why Sarek ran it in WGS mode though, both --wes and --intervals file was provided
t
I thought in one run
--intervals
was missing ("However, earlier when I ran the *same dataset without the intervals file*")? The
--wes
option is used to set parameters for some processes, but not all, not sure about CNVkit.
a
all the new runs are only with --intervals file provided. The current issue I am seeing is with it being provided. Prior to cnvkit batch, cnvkit reference was run by the pipeline and target file is being used to construct the reference:
Copy code
cnvkit.py \
    reference \
    --fasta Homo_sapiens_assembly38.fasta \
    --targets intervals_sorted.bed \
    --antitargets intervals.antitarget.bed \
    --output cnvkit.reference.cnn
I found the same issue being discussed here: https://github.com/nf-core/sarek/issues/2000?issue=nf-core%7Csarek%7C1251; including the --segment-method did not help
t
Do you have gene names in the BED used for
intervals
, as discussed in the issue you link to?
a
I don't have gene symbols in BED file, I dont know which is an appropriate column to insert these, my format currently is:
Copy code
chr1    14425   14627   chr1:14426-14627        1
chr1    14637   14883   chr1:14638-14883        1
According to Sarek's docs the 4th column is not being used.
t
The 4th column is for the "name" (5th is score and 6th is strand), so I think that should be most appropriate. Sarek mostly used this file for restricting the analysis and for splitting the analysis up, so it can be parallelized, and for that only the first 3 columns are used. But the BED is also passed to CNVkit, which can use the 4th column to annotate its findings with gene names. I the GitHub issue you found, someone seems to have associated the presence of gene names with additional output files, that's why I was asking about it.