![]() For more on finding patterns in AWK, check out the Patterns, Actions and Variables section of the AWK guide. In our case above, that number occurs once in the data file, but we could have used a regular expression or a range pattern instead. In that case, AWK would return every line that matches the pattern. ![]() Instead of matching a unique number, we could have matched on a string pattern or regular expression. For instance, we know we have 8 columns delimited by tabs in our data, but if you didn’t know how many columns you have, you can find this out with a bit of AWK: One of the things it does well is recognize fields in the data. If you aren’t familiar with AWK, it’s a programming language designed for text processing and data extraction. Let’s start working out parts of the code in AWK. What we want to do is get the rows from Chr (column 7) when it equals 6 and also the Pos (column 8) when the values are between 1100000000. MarkerName Allele1 Allele2 Freq1 FreqSE P-value Chr Pos
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |