Question: Text Manipulation
0
gravatar for Jennifer Hillman Jackson
6.3 years ago by
United States
Jennifer Hillman Jackson25k wrote:
Post to mailing list -- Jennifer Jackson http://galaxyproject.org
galaxy • 430 views
ADD COMMENTlink modified 6.3 years ago • written 6.3 years ago by Jennifer Hillman Jackson25k
0
gravatar for Jennifer Hillman Jackson
6.3 years ago by
United States
Jennifer Hillman Jackson25k wrote:
Hi Lee, There are a few options .. my guess is you are working with files like snpXXXCodingDbSnp? 1 - Using an expression such as this one will extract individual characters from the column, including the commas (treating the column's data like a string) c5.pop(1) = extracts the second character from the column 2 - Or, if you want to work with the entire codons, you could use the tool "Convert delimiters to TAB" to fully expand the data. You might want to use other Text Manipulation tools such as "Cut" with this option to get access to specific columns. Or "Condense consecutive characters" if the extra trailing commas in some of these datasets create empty columns (after converting to tabs). Hopefully this helps! If there is more feedback from our developers, we'll post more. Others on the list are also welcome to add in comments. Best, Jen Galaxy team -- Jennifer Jackson http://galaxyproject.org
ADD COMMENTlink written 6.3 years ago by Jennifer Hillman Jackson25k
Thanks Jen, Yes, I am working with codingDbSnp files. The solutions you suggest do the work, but they're clunky in requiring a bunch of operations to extract a whole codon or to determine whether a particular interval has two or three codons. So if someone has a one or two line solution, it would be much appreciated. Lee
ADD REPLYlink written 6.3 years ago by Lee Silver30
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 181 users visited in the last hour