Guys,
I need to extract some features from a DEG file like a Log2 Fold change from an ID gene list. I'm trying with python but I haven't enough experience with programming, this task is resulting complex. I don't know if this is the best way or is better to construct a database using SQlite. What is your advice or somebody have already one script for python or R.....
From already thank you very much.
Ashutosh Pandey I try with this:
grep -F -f thatineed.txt searchhere.txt
but is not work, I don't receive any result... these are my example files:thatineed.txt
searchhere.txt
What I would expect:
Thank you again :)
I copied your example and it worked for me. I assume you are using UNIX to do this. In your case the command would be
What error are you getting or the command doesn't print anything in your case?
Not, I'm using Linux (ubuntu) and yes, doesn't print anything.... I think for Linux is the same command or doesn't?
Hi,
I checked it on CentOS like that:
and what I got is:
If that does not work for you maybe something is strange with your POSIX?
I don't know what happen I did everything... and when I try with a word it work:
but when I try with a file it returns me an empty file:
I think grep is perfect for my task if it get work :D.
Really, thank you for your patience.
I had the exact same problem and want to share the solution for future readers: check the line-endings in your files (files created in windows use '\r\n', while linux expects '\n'). You can find-and-replace with almost any text-editor.