Skip to content

Commit

Permalink
Update SorTnSeq_format_features.R
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Jackson authored Feb 17, 2021
1 parent 4ab2b9a commit cd95692
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions SorTnSeq_format_features.R
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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)



Expand Down

0 comments on commit cd95692

Please sign in to comment.