Jeremy Simon
07/04/2024, 5:59 PMnextflow run nf-core/crisprseq -r dev -c /pipelines/nfcore/nextflow.config -work-dir /nextflow/work --input crisprseq_samplesheet.csv --outdir nextflow_out --analysis screening --library gRNA_annotated_geneSymbol_withID.tsv --contrasts crisprseq_contrasts.csv --reference_fasta GRCh38.primary_assembly.genome.fa
contrasts are set up as
reference;treatment
control;treated_5hr
control;treated_7hr
any clues?
ERROR ~ Error executing process > 'NFCORE_CRISPRSEQ:CRISPRSEQ_SCREENING:MAGECK_FLUTEMLE_CONTRASTS (treated_5hr_vs_control)'
Caused by:
Process `NFCORE_CRISPRSEQ:CRISPRSEQ_SCREENING:MAGECK_FLUTEMLE_CONTRASTS (treated_5hr_vs_control)` terminated with an error exit status (1)
Command executed [/homes8/jsimon/.nextflow/assets/nf-core/crisprseq/templates/template_fluteMLE.R]:
#!/usr/bin/env Rscript
#### author: Laurence Kuhlburger
#### Released under the MIT license. See git repository (<https://github.com/nf-core/crisprseq>) for full license text.
####
#### graphs mageck MLE
library(MAGeCKFlute)
library(clusterProfiler)
library(ggplot2)
library(pathview)
options(ggrepel.max.overlaps = Inf)
mle <- read.table("treated_5hr_vs_control.gene_summary.txt", header = TRUE, sep = " ", stringsAsFactors = FALSE)
if("treated_5hr_vs_control" == "day0") {
beta_strings <- grep("\\.beta", colnames(mle), value = TRUE)
before_beta <- sub("\\.beta.*", "", beta_strings)
unique_strings <- unique(before_beta)
for(i in unique_strings) {
FluteMLE(mle, treatname= i, proj=i, <http://pathview.top|pathview.top>=5)
}
} else {
beta_strings <- grep("\\.beta", colnames(mle), value = TRUE)
before_beta <- sub("\\.beta.*", "", beta_strings)
unique_strings <- unique(before_beta)
for(i in unique_strings) {
FluteMLE(mle, treatname= i, proj=i, , <http://pathview.top|pathview.top>=5)
}
}
version_file_path <- "versions.yml"
version_flute <- paste(unlist(packageVersion("MAGeCKFlute")), collapse = ".")
version_ggplot <- paste(unlist(packageVersion("ggplot2")), collapse = ".")
version_clusterprofiler <- paste(unlist(packageVersion("clusterProfiler")), collapse = ".")
version_pathview <- paste(unlist(packageVersion("pathview")), collapse = ".")
f <- file(version_file_path, "w")
writeLines('"NFCORE_CRISPRSEQ:CRISPRSEQ_SCREENING:MAGECK_FLUTEMLE_CONTRASTS":', f)
writeLines(" MAGeCKFlute: ", f, sep = "")
writeLines(version_flute, f)
writeLines(" ggplot2: ", f, sep = "")
writeLines(version_ggplot, f)
writeLines(" clusterProfiler: ", f, sep = "")
writeLines(version_clusterprofiler, f)
writeLines(" pathview: ", f, sep = "")
writeLines(version_pathview, f)
close(f)
Command exit status:
1
Command output:
(empty)
Command error:
36 genes have duplicate Entrez IDs: HIST1H2BC, HIST1H2BG, HIST1H2BF, PLEKHG7, DEC1, HIST1H2BI, MUM1, KIAA1107, AKAP2, NEBL, HN1L, SLC35E2, WWTR1, NOV, DCDC1, C10orf12, ZASP, HYAL1, MICALCL, QARS, LOXL2, CC2D2B, GIF, RAB34, C16orf47, TMEM257, C17orf47, ARHGAP42, MARS, TXNRD3, RRM2, HIST1H2BE, SEPT6, SEM1, C9orf47, DUPD1
snapshotDate(): 2022-10-31
see ?depmap and browseVignettes('depmap') for documentation
loading from cache
snapshotDate(): 2022-10-31
see ?depmap and browseVignettes('depmap') for documentation
loading from cache
snapshotDate(): 2022-10-31
see ?depmap and browseVignettes('depmap') for documentation
loading from cache
snapshotDate(): 2022-10-31
see ?depmap and browseVignettes('depmap') for documentation
loading from cache
2024-07-03 19:14:43 # Enrichment analysis of Positive and Negative selected genes ...
2024-07-03 19:14:43 # Running KEGG+REACTOME+GOBP+Complex enrichment analysis
446 genes are mapped ...
2024-07-03 19:14:52 # Running KEGG+REACTOME+GOBP+Complex enrichment analysis
330 genes are mapped ...
2024-07-03 19:15:07 # Starting plot kegg pathways for Group A
Info: Downloading xml files for hsa04115, 1/1 pathways..
Info: Downloading png files for hsa04115, 1/1 pathways..
'select()' returned 1:1 mapping between keys and columns
Info: Working in directory /jsimonlab/scratch/jsimon/nextflow/work/20/2cd6d926916e086179100326a47cbe
Info: Writing image file hsa04115.pathview.multi.png
Info: Downloading xml files for hsa04215, 1/1 pathways..
Info: Downloading png files for hsa04215, 1/1 pathways..
'select()' returned 1:1 mapping between keys and columns
Info: Working in directory /jsimonlab/scratch/jsimon/nextflow/work/20/2cd6d926916e086179100326a47cbe
Info: Writing image file hsa04215.pathview.multi.png
Info: some node width is different from others, and hence adjusted!
pathview failed for hsa04215
Info: Downloading xml files for hsa05222, 1/1 pathways..
Info: Downloading png files for hsa05222, 1/1 pathways..
'select()' returned 1:1 mapping between keys and columns
Info: Working in directory /jsimonlab/scratch/jsimon/nextflow/work/20/2cd6d926916e086179100326a47cbe
Info: Writing image file hsa05222.pathview.multi.png
Info: Downloading xml files for hsa04210, 1/1 pathways..
Info: Downloading png files for hsa04210, 1/1 pathways..
'select()' returned 1:1 mapping between keys and columns
Info: Working in directory /jsimonlab/scratch/jsimon/nextflow/work/20/2cd6d926916e086179100326a47cbe
Info: Writing image file hsa04210.pathview.multi.png
Info: Downloading xml files for hsa01524, 1/1 pathways..
Info: Downloading png files for hsa01524, 1/1 pathways..
'select()' returned 1:1 mapping between keys and columns
Info: Working in directory /jsimonlab/scratch/jsimon/nextflow/work/20/2cd6d926916e086179100326a47cbe
Info: Writing image file hsa01524.pathview.multi.png
Error in png::readPNG(figure, native = FALSE) : file is not in PNG format
Calls: FluteMLE ... arrangePathview -> lapply -> FUN -> <Anonymous> -> <Anonymous>
In addition: There were 12 warnings (use warnings() to see them)
Execution haltedLaurence Kuhlburger
07/04/2024, 6:01 PM--reference_fasta GRCh38.primary_assembly.genome.fa
like how does your count table look like from mageck?Jeremy Simon
07/04/2024, 7:59 PMJeremy Simon
07/04/2024, 8:00 PMday0 label, and im wondering if that is somehow related?Laurence Kuhlburger
07/04/2024, 8:01 PMJeremy Simon
07/04/2024, 8:02 PMLaurence Kuhlburger
07/04/2024, 8:02 PMJeremy Simon
07/04/2024, 8:05 PMsgRNA16220 HIST1H2BC 336 86 102 120 14 105 171 129 72
sgRNA16221 HIST1H2BC 436 366 172 262 330 395 695 420 361
sgRNA16222 HIST1H2BC 346 780 247 392 578 482 431 519 177Jeremy Simon
07/04/2024, 8:09 PMJeremy Simon
07/04/2024, 8:34 PMLaurence Kuhlburger
07/05/2024, 6:12 AM--reference_fasta GRCh38.primary_assembly.genome.fa and it should work the same thenLaurence Kuhlburger
07/05/2024, 6:15 AMJeremy Simon
07/05/2024, 1:14 PMLaurence Kuhlburger
07/05/2024, 1:24 PMLaurence Kuhlburger
07/05/2024, 1:24 PMJeremy Simon
07/05/2024, 1:27 PMJeremy Simon
07/05/2024, 1:28 PMJeremy Simon
07/05/2024, 1:28 PMLaurence Kuhlburger
07/05/2024, 1:29 PMLaurence Kuhlburger
07/05/2024, 1:29 PMLaurence Kuhlburger
07/05/2024, 1:29 PMJeremy Simon
07/05/2024, 1:30 PMLaurence Kuhlburger
07/05/2024, 1:30 PMLaurence Kuhlburger
07/05/2024, 1:31 PMJeremy Simon
07/05/2024, 1:31 PMJeremy Simon
07/05/2024, 1:32 PMLaurence Kuhlburger
07/05/2024, 1:32 PMJeremy Simon
07/05/2024, 1:33 PMLaurence Kuhlburger
07/05/2024, 1:34 PMJeremy Simon
07/05/2024, 1:36 PMLaurence Kuhlburger
07/05/2024, 1:36 PMLaurence Kuhlburger
07/05/2024, 1:37 PMJeremy Simon
07/05/2024, 1:39 PMJeremy Simon
07/05/2024, 1:40 PMJeremy Simon
07/05/2024, 1:40 PMJeremy Simon
07/05/2024, 1:43 PMcontrol in my example, or a comma-separated list of Untreated_0hr_Rep1,Untreated_0hr_Rep2,Untreated_0hr_Rep3 or something elseLaurence Kuhlburger
07/05/2024, 1:50 PM--day0_label 'Untreated_0hr_Rep1,Untreated_0hr_Rep2,Untreated_0hr_Rep3' would be the correct way to go for your experiment, haven’t tried it thoughJeremy Simon
07/05/2024, 2:01 PMJeremy Simon
07/05/2024, 2:39 PMJeremy Simon
07/05/2024, 2:41 PMJeremy Simon
07/10/2024, 11:38 AMLaurence Kuhlburger
07/10/2024, 12:07 PMnextflow run . -c user.config --count_table ../jeremy/count_table.count.txt --outdir test_jeremy --analysis screening --mle_design_matrix ../jeremy/treated_7hr_vs_control.txt -profile docker -resume
and get another error :
Command error:
retrieving 1 resource
loading from cache
snapshotDate(): 2022-10-31
see ?depmap and browseVignettes('depmap') for documentation
downloading 1 resources
retrieving 1 resource
loading from cache
snapshotDate(): 2022-10-31
see ?depmap and browseVignettes('depmap') for documentation
loading from cache
snapshotDate(): 2022-10-31
see ?depmap and browseVignettes('depmap') for documentation
loading from cache
2024-07-10 12:02:37 # Enrichment analysis of Positive and Negative selected genes ...
2024-07-10 12:02:37 # Running KEGG+REACTOME+GOBP+Complex enrichment analysis
484 genes are mapped ...
2024-07-10 12:02:41 # Running KEGG+REACTOME+GOBP+Complex enrichment analysis
301 genes are mapped ...
2024-07-10 12:02:49 # Starting plot kegg pathways for Group A
Info: Downloading xml files for hsa04115, 1/1 pathways..
Info: Downloading png files for hsa04115, 1/1 pathways..
'select()' returned 1:1 mapping between keys and columns
Info: Working in directory /Users/laurencekuhlburger/Documents/crisprseq/crisprseq/work/d7/ef8f81048ef6d00888210cdd1e6731
Info: Writing image file hsa04115.pathview.multi.png
Info: Downloading xml files for hsa04215, 1/1 pathways..
Info: Downloading png files for hsa04215, 1/1 pathways..
'select()' returned 1:1 mapping between keys and columns
Info: Working in directory /Users/laurencekuhlburger/Documents/crisprseq/crisprseq/work/d7/ef8f81048ef6d00888210cdd1e6731
Info: Writing image file hsa04215.pathview.multi.png
Info: some node width is different from others, and hence adjusted!
pathview failed for hsa04215
Info: Downloading xml files for hsa01524, 1/1 pathways..
Info: Downloading png files for hsa01524, 1/1 pathways..
'select()' returned 1:1 mapping between keys and columns
Info: Working in directory /Users/laurencekuhlburger/Documents/crisprseq/crisprseq/work/d7/ef8f81048ef6d00888210cdd1e6731
Info: Writing image file hsa01524.pathview.multi.png
Info: Downloading xml files for hsa04210, 1/1 pathways..
Info: Downloading png files for hsa04210, 1/1 pathways..
'select()' returned 1:1 mapping between keys and columns
Info: Working in directory /Users/laurencekuhlburger/Documents/crisprseq/crisprseq/work/d7/ef8f81048ef6d00888210cdd1e6731
Info: Writing image file hsa04210.pathview.multi.png
Info: Downloading xml files for hsa03040, 1/1 pathways..
Info: Downloading png files for hsa03040, 1/1 pathways..
'select()' returned 1:1 mapping between keys and columns
Info: Working in directory /Users/laurencekuhlburger/Documents/crisprseq/crisprseq/work/d7/ef8f81048ef6d00888210cdd1e6731
Info: Writing image file hsa03040.pathview.multi.png
Error in png::readPNG(figure, native = FALSE) : file is not in PNG format
Calls: FluteMLE ... arrangePathview -> lapply -> FUN -> <Anonymous> -> <Anonymous>
In addition: There were 12 warnings (use warnings() to see them)
Execution halted
which i think i’ve seen before on pathway enrichmentLaurence Kuhlburger
07/10/2024, 12:11 PMLaurence Kuhlburger
07/10/2024, 12:17 PMJeremy Simon
07/10/2024, 1:17 PMJeremy Simon
07/10/2024, 1:18 PMLaurence Kuhlburger
07/10/2024, 1:19 PMLaurence Kuhlburger
07/10/2024, 1:19 PMLaurence Kuhlburger
07/10/2024, 1:20 PMLaurence Kuhlburger
07/10/2024, 1:20 PMJeremy Simon
07/10/2024, 1:44 PMLaurence Kuhlburger
07/10/2024, 1:46 PMlaurencekuhl/crisprseq -r dev instead of the nf-core oneJeremy Simon
07/10/2024, 1:47 PMJeremy Simon
07/10/2024, 8:04 PMLaurence Kuhlburger
07/10/2024, 8:41 PMJeremy Simon
07/10/2024, 8:54 PMJeremy Simon
07/10/2024, 8:54 PMday0_label at all, do i?Jeremy Simon
07/10/2024, 8:54 PMLaurence Kuhlburger
07/11/2024, 6:50 AMJeremy Simon
07/11/2024, 5:01 PMmageck count step shows my sample labels as
--sample-label treated_5hr,treated_5hr,treated_5hr,treated_7hr,treated_7hr,treated_7hr,control,control,control
not as the sample labels (first column) in my sample sheet
Etoposide_5hr_Rep1,Etoposide_5hr_Rep2,Etoposide_5hr_Rep3,Etoposide_7hr_Rep1,Etoposide_7hr_Rep2,Etoposide_7hr_Rep3,Untreated_0hr_Rep1,Untreated_0hr_Rep2,Untreated_0hr_Rep3
and as a result, i can't tell my replicates apart in my counts tables (count_table.count.txt , count_table.count_normalized.txt)
is there an additional metadata column i can pass in my samplesheet, or is there another parameter somewhere ive missed?Laurence Kuhlburger
07/15/2024, 7:27 PMJeremy Simon
07/15/2024, 7:30 PMLaurence Kuhlburger
07/15/2024, 7:35 PMLaurence Kuhlburger
07/15/2024, 7:36 PMcrisprseq_contrasts.csv with your sample names to get the right contrast goingLaurence Kuhlburger
07/15/2024, 7:58 PMJeremy Simon
07/15/2024, 8:03 PMJeremy Simon
07/15/2024, 8:03 PMJeremy Simon
07/15/2024, 8:04 PMLaurence Kuhlburger
07/16/2024, 5:55 AMJeremy Simon
07/16/2024, 11:54 AMLaurence Kuhlburger
07/16/2024, 11:55 AMJeremy Simon
07/16/2024, 11:56 AMJeremy Simon
07/16/2024, 11:56 AMLaurence Kuhlburger
07/16/2024, 11:56 AMLaurence Kuhlburger
07/16/2024, 11:56 AMJeremy Simon
07/16/2024, 11:58 AMLaurence Kuhlburger
07/16/2024, 11:59 AMJeremy Simon
07/16/2024, 12:00 PMLaurence Kuhlburger
07/16/2024, 12:01 PMLaurence Kuhlburger
07/16/2024, 12:01 PMJeremy Simon
07/16/2024, 12:02 PMJeremy Simon
07/16/2024, 12:02 PMLaurence Kuhlburger
07/16/2024, 1:38 PMJeremy Simon
07/16/2024, 1:58 PMJeremy Simon
07/16/2024, 2:00 PMLaurence Kuhlburger
07/16/2024, 2:01 PMJeremy Simon
07/16/2024, 2:03 PMJeremy Simon
07/16/2024, 2:04 PMJeremy Simon
07/16/2024, 2:05 PMLaurence Kuhlburger
07/24/2024, 1:41 PMThis label is not mandatory as in case you are running time series. If you wish to run MAGeCK MLE with the day0 label you can do so by specifying `--day0_label` and the sample names that should be used as day0. The contrast will then be automatically adjusted for the other days.
to the day0 labelJeremy Simon
07/24/2024, 2:56 PMJeremy Simon
07/24/2024, 2:56 PMLaurence Kuhlburger
07/24/2024, 2:57 PMLaurence Kuhlburger
07/24/2024, 2:58 PMJeremy Simon
07/24/2024, 3:00 PMJeremy Simon
07/24/2024, 3:00 PMLaurence Kuhlburger
07/24/2024, 3:05 PMJeremy Simon
07/24/2024, 3:07 PMreference;treatment
control_1,control_2,control_3;treated_5hr_1,treated_5hr_2,treated_5hr_3
control_1,control_2,control_3;treated_7hr_1,treated_7hr_2,treated_7hr_3Jeremy Simon
07/24/2024, 3:13 PMcondition column altogether. if you can specify the contrasts this way, then there may be no need for that columnJeremy Simon
07/24/2024, 5:07 PMLaurence Kuhlburger
07/24/2024, 5:23 PMJeremy Simon
07/24/2024, 5:30 PMLaurence Kuhlburger
07/24/2024, 6:41 PM-r *control-sgrna* instead of dev and add --mle_control_sgrna 'your_file.txt' ?Jeremy Simon
07/24/2024, 7:57 PMLaurence Kuhlburger
07/24/2024, 8:03 PMJeremy Simon
07/25/2024, 2:34 PM/usr/local/bin/mageck count -l gRNA_annotated_geneSymbol_withID.tsv -n count_table --sample-label treated_5hr_1,treated_5hr_2,treated_5hr_3,treated_7hr_1,treated_7hr_2,treated_7hr_3,control_1,control_2,control_3 --fastq 20uM-etoposide-5hrs-1_S1_R1_001.fastq.gz 20uM-etoposide-5hrs-2_S4_R1_001.fastq.gz 20uM-etoposide-5hrs-3_S6_R1_001.fastq.gz 20uM-etoposide-7hrs-1_S2_R1_001.fastq.gz 20uM-etoposide-7hrs-2_S2_R1_001.fastq.gz 20uM-etoposide-7hrs-3_S7_R1_001.fastq.gz Untreated-1_S1_R1_001.fastq.gz Untreated-2_S3_R1_001.fastq.gz Untreated-3_S5_R1_001.fastq.gzJeremy Simon
07/25/2024, 2:37 PMLaurence Kuhlburger
07/25/2024, 2:46 PMJeremy Simon
07/25/2024, 2:53 PMLaurence Kuhlburger
07/25/2024, 2:54 PMLaurence Kuhlburger
07/25/2024, 2:55 PMJeremy Simon
07/25/2024, 2:55 PMcount? im not familiar with any of this so will defer to your expertiseLaurence Kuhlburger
07/25/2024, 2:56 PM--norm-method {none,median,total,control} Method for normalization, including "none" (no normalization), "median" (median normalization, default), "total" (normalization by total read counts), "control" (normalization by control sgRNAs specified by the --control-sgrna option).
https://sourceforge.net/p/mageck/wiki/usage/#count
Looks like it does but i wonder if then the param --norm-method should then be addedJeremy Simon
07/25/2024, 2:57 PMJeremy Simon
07/25/2024, 3:07 PMLaurence Kuhlburger
07/25/2024, 3:07 PMJeremy Simon
07/25/2024, 3:07 PMLaurence Kuhlburger
07/25/2024, 7:30 PMJeremy Simon
07/31/2024, 1:52 PMJeremy Simon
07/31/2024, 1:53 PMLaurence Kuhlburger
07/31/2024, 2:12 PM