Sorting RNA-seq data
Hello,
I have some RNA-seq data on an Excel spreadsheet. My gene/s of interest follow a particular expression pattern. I would like to know if it is possible to sort the data/identify genes that match 3 conditions set by me. For example, I'd like to be able to see all the genes that match this expression pattern :
Cell line A < Cell Line B < Cell line C > Cell line D
• 2,620 views
•
link
3 answers
If you are using Microsoft Excel,
=IF(AND(A1<B1,B1<C1,C1>D1),"YES","NO")
• 1 views
•
link
With awk that would be:
awk '($2 < $3 && $3 < $4 && $4>$5 )'
• 1 views
•
link
Using R:
# read the file, something like:
df1 <- read.table("myFile.txt")
# then filter
df1[ df1$CellA < df1$CellB & df1$CellB < df1$CellC & df1$CellC > df1$CellD, ]
• 1 views
•
link
Log in to answer this question.
Please provide example input and expected output.
For example-
The command should exclude gene B from the data set, since it does not follow the pattern A < B < C > D, and provide me with a list of genes that does so Gene A,C and D.