Compare commits

..

1 Commits

Author SHA1 Message Date
coolneng 576597cb04
Remove redundant sequencing runs argument 2021-03-29 20:40:01 +02:00
2 changed files with 5 additions and 5 deletions

View File

@ -19,6 +19,5 @@ fastq=".fastq"
filename="sequence" filename="sequence"
prefix="curesim_" prefix="curesim_"
Rscript src/repertoire.r "$sequences" "$sequencing_runs" Rscript src/repertoire.r "$sequences" && java -jar tools/CuReSim.jar -n "$sequencing_runs" -m "$read_mean_size" -sd "$read_variance_size" -f "$data_directory$filename$fasta" -o "$data_directory$prefix$filename$fastq"
java -jar tools/CuReSim.jar -n "$sequencing_runs" -m "$read_mean_size" -sd "$read_variance_size" -f "$data_directory$filename$fasta" -o "$data_directory$prefix$filename$fastq"
rm "$data_directory/log.txt" rm "$data_directory/log.txt"

View File

@ -22,7 +22,8 @@ process_data <- function(repertoire) {
"d_sequence_alignment", "j_sequence_alignment" "d_sequence_alignment", "j_sequence_alignment"
) )
data <- repertoire[, columns] data <- repertoire[, columns]
data$sequence <- Biostrings::reverseComplement(data$sequence) dna_sequence <- Biostrings::DNAStringSet(data$sequence)
data$sequence <- Biostrings::reverseComplement(dna_sequence)
save_data(data) save_data(data)
} }
@ -34,6 +35,6 @@ parse_cli_arguments <- function() {
return(args[1]) return(args[1])
} }
arguments <- parse_cli_arguments(commandArgs(trailing)) args <- parse_cli_arguments()
repertoire <- generate_repertoire(number_of_sequences = arguments[1]) repertoire <- generate_repertoire(number_of_sequences = as.integer(args[1]))
process_data(repertoire) process_data(repertoire)