From cd95692c09ff9f08d9eeff166c8c2ad8e576f6c0 Mon Sep 17 00:00:00 2001 From: Simon Jackson <56136662+JacksonLab@users.noreply.github.com> Date: Wed, 17 Feb 2021 15:08:09 +1300 Subject: [PATCH] Update SorTnSeq_format_features.R --- SorTnSeq_format_features.R | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/SorTnSeq_format_features.R b/SorTnSeq_format_features.R index 4a1298f..36f5f43 100644 --- a/SorTnSeq_format_features.R +++ b/SorTnSeq_format_features.R @@ -2,9 +2,10 @@ library(tidyverse) library(readxl) library(writexl) -generate_feature_table<-function(file.prefix){ +file.prefix<-"GCF_002847015.1_ASM284701v1" # Please update for your target genome -# file.prefix<-"GCF_002847015.1_ASM284701v1" +generate_feature_table<-function(file.prefix){ + gff.refseq<-read_delim(paste0(file.prefix,"_genomic.gff"),delim="\t",comment="#", col_names=c("seqid", "source", @@ -173,7 +174,7 @@ features.in<-gff.refseq%>% features.sortnseq%>%write_xlsx(paste0(file.prefix,"_features_sortnseq.xlsx")) } -generate_feature_table("GCF_002847015.1_ASM284701v1") # serratia +generate_feature_table(file.prefix)