Search Results

Search: Posts Made By: JFS
5,006
Posted By JFS
I'm back at this after some bench work, and it's...
I'm back at this after some bench work, and it's not working for me yet.

here's a file named infile

>zzzzzzzzzzzzzGGGAAGTGAGGCGYTGTTGTTATTTGGTTTAYGAGTCAGAGGTGTTTTTTCACGGAGAGATGGCTCTAAGA...
5,006
Posted By JFS
Thank you / will this work with long files?
Thanks! I was getting the sense I might need to do a sort of patchwork using SED or PERL (neither of which I have ever used, but between your suggestion and a cheat sheet, it ought to be doable).
...
5,006
Posted By JFS
trying to do multiple replacements; not working
I got the single replacement to work. But when I try to chain up multiple commands, it's hit or miss.

Here's my input file, creatively named testfile1

2011AAAATAACAAAAAT
2012AAATTAACAAAAAT...
5,006
Posted By JFS
Thanks! That looks like the truly position-only...
Thanks! That looks like the truly position-only answer I was looking for. Much nicer than having to specify a boatload of sequence alternatives.
5,006
Posted By JFS
clarification of question
That 10th position that's being replaced need not be a G. Strictly speaking, it could be anything. That's why I show it as being either a G or a C in the three examples I put up. Unfortunately, G's...
5,006
Posted By JFS
Simple awk script for positional replacement in text?
I have a string of letters. (They happen to be DNA, not that it's relevant to the question.) For analysis purposes, I need to replace the information at some of the sites. I need to do this based on...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 11:58 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy