Hi I am using R in windows 7
I got a small program to split a large fastq file in 1 million reads/file and name them automatically. Programm running O.k. but I want to change the output folder how I do that?
my programm
FastqFile<- "./Sequencing/ERR12730_1.fastq.gz"
fileBaseName<-sub("fastq$", " ", FastqFile)
#iterate over Fastqfile
f<- FastqStreamer(FastqFile, 1000000)
file_index<-0
while(length(fq<-yield(f))){
newName<-paste(fileBaseName, "_", file_index, ".fastq", sep =" ")
writeFastq( fq, file=newName)
file_index<- file_index+1
}
close(f)
I want to send the output files in other folder say ./Sequencing/output
How to do?
Plz help me out!
I got a small program to split a large fastq file in 1 million reads/file and name them automatically. Programm running O.k. but I want to change the output folder how I do that?
my programm
FastqFile<- "./Sequencing/ERR12730_1.fastq.gz"
fileBaseName<-sub("fastq$", " ", FastqFile)
#iterate over Fastqfile
f<- FastqStreamer(FastqFile, 1000000)
file_index<-0
while(length(fq<-yield(f))){
newName<-paste(fileBaseName, "_", file_index, ".fastq", sep =" ")
writeFastq( fq, file=newName)
file_index<- file_index+1
}
close(f)
I want to send the output files in other folder say ./Sequencing/output
How to do?
Plz help me out!
Comment