Skip to content

Commit

Permalink
Added script for extracting data from R compressed files
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski committed May 3, 2016
1 parent 3b5c31b commit 762c5b2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions save_data_as_plain_text.r
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
load("ad_muts.rsav")
write.table(ad_muts, "ad_muts.tsv", sep='\t', quote=F, row.names=F)

load("psite_table.rsav")
write.table(psite_table, "psite_table.tsv", sep='\t', quote=F, row.names=F)

# install.packages("seqinr", repos="http://R-Forge.R-project.org")
library(seqinr)
load("longest_isoform_proteins.fa.rsav")
write.fasta(sequences=as.list(longest_isoform_proteins), names=names(longest_isoform_proteins), file.out='longest_isoform_proteins.fa', as.string=T)

0 comments on commit 762c5b2

Please sign in to comment.