You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! Thank you for all your work!
I have a question about one the HaplotypR functions.
I am working on MiSeq data with the HaplotypR package. I have 35 samples with five P. falciparum markers: ama1-d3, cpmp, csp, cpp and msp7.
I could proceed with the following steps using an R code I received from the WEHI in December 2019:
demultiplexing by sample
demultiplexing by marker
read quality per marker
I am then trying to merge paired ends but I am encountering different issues depending on the syntax I am trying:
Syntax 1:
> merged_reads <-
+ marker_deplex %>%
+ select(SampleID, SampleName, MarkerID) %>%
+ bind_cols(mergeAmpliconReads(marker_deplex$FileR1,
+ marker_deplex$FileR2,
+ outputDir = 'merge_reads'))
Processing file 3D7-A_BC_GTAAGGAG-CGTACTAG_cpmp_F.fastq.gz and 3D7-A_BC_GTAAGGAG-CGTACTAG_cpmp_R.fastq.gz ...1
Warning in if (method == "vsearch") { :
the condition has length > 1 and only the first element will be used
Warning in system(call, intern = TRUE) :
running command '"C:/Users/apepey/Documents/R/R-4.1.2/library/Rvsearch/vsearch" --fastq_mergepairs "marker_deplex/3D7-A_BC_GTAAGGAG-CGTACTAG_cpmp_F.fastq.gz" --reverse "marker_deplex/3D7-A_BC_GTAAGGAG-CGTACTAG_cpmp_R.fastq.gz" --fastqout "merge_reads/3D7-A_BC_GTAAGGAG-CGTACTAG_cpmp_merge.fastq.gz" --fastq_truncqual 1 --fastq_maxns 0 --fastq_allowmergestagger' had status 1
Error: Input/Output
no input files found
dirPath: merge_reads/3D7-A_BC_GTAAGGAG-CGTACTAG_cpmp_merge.fastq.gz
pattern: character(0)
Syntax 2:
> merged_reads <-
+ marker_deplex %>%
+ mergeAmpliconReads(fastqFileR1 = marker_deplex$FileR1,
+ fastqFileR2 = marker_deplex$FileR2,
+ outputDir = 'merge_reads')
Processing file 3D7-A_BC_GTAAGGAG-CGTACTAG_cpmp_F.fastq.gz and 3D7-A_BC_GTAAGGAG-CGTACTAG_cpmp_R.fastq.gz ...1
Warning in if (method == "vsearch") { :
the condition has length > 1 and only the first element will be used
Warning in if (method == "NGmerge") { :
the condition has length > 1 and only the first element will be used
Error in FUN(X[[i]], ...) :
Merge c("3D7-A", "3D7-A", "3D7-A", "3D7-A", "3D7-A", "3D7-B", "3D7-B", "3D7-B", "3D7-B", "3D7-B", "M0-176", "M0-176", "M0-176", "M0-176", "M0-176", "M0-316", "M0-316", "M0-316", "M0-316", "M0-316", "M0-441", "M0-441", "M0-441", "M0-441", "M0-441", "M0-445", "M0-445", "M0-445", "M0-445", "M0-445", "M0-5", "M0-5", "M0-5", "M0-5", "M0-5", "M0-561", "M0-561", "M0-561", "M0-561", "M0-561", "M0-562", "M0-562", "M0-562", "M0-562", "M0-562", "M0-687", "M0-687", "M0-687", "M0-687", "M0-687", "M0-801", "M0-801",
"M0-801", "M0-801", "M0-801", "M0-96", "M0-96", "M0-96", "M0-96", "M0-96", "M1-316", "M1-316", "M1-316", "M1-316", "M1-316", "M1-561", "M1-561", "M1-561", "M1-561", "M1-561", "M1-687", "M1-687", "M1-687", "M1-687", "M1-687", "M1-801", "M1-801", "M1-801", "M1-801", "M1-801", "M1-831", "M1-831", "M1-831", "M1-831", "M1-831", "M11-441", "M11-441", "M11-441", "M11-441", "M11-441", "M11-792", "M11-792", "M11-792", "M11-792", "M11-792", "M2-445", "M2-445", "M2-445", "M2-445", "M2-445
Syntax 3:
> merged_reads <-
+ marker_deplex %>%
+ select(SampleID, SampleName, MarkerID) %>%
+ bind_cols(mergeAmpliconReads(fastqFileR1 = as.character(marker_deplex$FileR1),
+ fastqFileR2 = as.character(marker_deplex$FileR2),
+ outputDir = './merge_reads'))
Processing file 3D7-A_BC_GTAAGGAG-CGTACTAG_cpmp_F.fastq.gz and 3D7-A_BC_GTAAGGAG-CGTACTAG_cpmp_R.fastq.gz ...1
Warning in if (method == "vsearch") { :
the condition has length > 1 and only the first element will be used
Warning in system(call, intern = TRUE) :
running command '"C:/Users/apepey/Documents/R/R-4.1.2/library/Rvsearch/vsearch" --fastq_mergepairs "marker_deplex/3D7-A_BC_GTAAGGAG-CGTACTAG_cpmp_F.fastq.gz" --reverse "marker_deplex/3D7-A_BC_GTAAGGAG-CGTACTAG_cpmp_R.fastq.gz" --fastqout "./merge_reads/3D7-A_BC_GTAAGGAG-CGTACTAG_cpmp_merge.fastq.gz" --fastq_truncqual 1 --fastq_maxns 0 --fastq_allowmergestagger' had status 1
Error: Input/Output
no input files found
dirPath: ./merge_reads/3D7-A_BC_GTAAGGAG-CGTACTAG_cpmp_merge.fastq.gz
pattern: character(0)
Syntax 4:
> merged_reads <-
+ marker_deplex %>%
+ mergeAmpliconReads(as.character(marker_deplex$FileR1),
+ as.character(marker_deplex$FileR2),
+ outputDir = './merge_reads')
Error in mergeAmpliconReads(., as.character(marker_deplex$FileR1), as.character(marker_deplex$FileR2), :
Vector length of fastqFileR1 and fastqFileR2 not identical
Thanks for the information.
First, I can not give you support for the code you got from WEHI (code using %>%), but I can help you with the merging reads.
The code from WEHI combines multiple step into one step and makes it very difficult understand. It is far better to split up the code if you have issues. So just try to run the following lines individually and also read my instructions to Run HaplotypR on https://github.com/lerch-a/HaplotypR.
Hello! Thank you for all your work!
I have a question about one the HaplotypR functions.
I am working on MiSeq data with the HaplotypR package. I have 35 samples with five P. falciparum markers: ama1-d3, cpmp, csp, cpp and msp7.
I could proceed with the following steps using an R code I received from the WEHI in December 2019:
I am then trying to merge paired ends but I am encountering different issues depending on the syntax I am trying:
Syntax 1:
Syntax 2:
Syntax 3:
Syntax 4:
What could I try to merge paired ends?
Any help is appreciated, thank you.
My
marker_table
is available here: https://gist.github.com/APepey/054e40b9a10f4b25987dc73b3421e2f5Here is my session info:
Thank you again!
The text was updated successfully, but these errors were encountered: