This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Building a PST in R

I am trying to build a pst of a csv file in R, but facing with an error:

"Error in names(StCol) <- A "

After reading the file:

try1 <- read.csv("C:/Users/.../Desktop/sonuclar/2merCsv/Arteanuine B_2mer.csv") 
data(try1)

Warning message: In data(try1) : data set 'try1' not found

This is the first error before using pstree function.

How can I handle with them?

The code I m trying to run is:

try1 <- read.csv("C:/Users/.../Desktop/sonuclar/2merCsv/Arteanuine B_2mer.csv") 
data(try1) 
try1.seq <- seqdef(try1) 
try1.seq 
Try1 <- pstree(tyr1.seq, L = 3) 
print(Try1, digits = 3) 
Try1
r

IMHO, you don't need the data() command. It is mainly used to attach (toy) data from libraries.

Just try to run it without it.

After reading the csv, you should have a look at your data if everything is correctly assigned (e.g. dim(try1); head(try1); summary(try1)).

0 answers

No answers yet.

Log in to answer this question.