Parse curesim and VDJ sequences from files

This commit is contained in:
coolneng 2021-03-23 20:54:31 +01:00
parent 66b39485a9
commit 8f5b9ee698
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 17 additions and 0 deletions

17
src/alignment.r Normal file
View File

@ -0,0 +1,17 @@
library(Biostrings)
library(fastqcr)
parse_data <- function(files) {
reversed_sequences <- Biostrings::readQualityScaledDNAStringSet(files[1])
sequences <- Biostrings::reverseComplement(reversed_sequences)
vdj_alignment <- read.csv(files[2])
vdj_string_set <- lapply(vdj_alignment, FUN = Biostrings::DNAStringSet)
return(list(sequences, vdj_string_set))
}
align_sequences <- function(sequences, vdj_segments) {
}
input_files <- c("data/curesim_sequence.fastq", "data/vdj_alignment.csv")
data <- parse_data(input_files)