Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cut and columns #5

Open
mikblack opened this issue Jun 29, 2022 · 1 comment
Open

cut and columns #5

mikblack opened this issue Jun 29, 2022 · 1 comment
Assignees

Comments

@mikblack
Copy link
Member

In: workshop_material/4_inspectmanipluate.md

When doing this sort of stuff:

grep -v "^#" Mus_musculus.GRCm38.75_chr1.gtf | cut -f1-8 | head -n3

It would be good to get people to take a look at the first few rows of the Mus_musculus.GRCm38.75_chr1.gtf file so they can see what the header rows look like.

@DininduSenanayake DininduSenanayake self-assigned this Jun 30, 2022
@murraycadzow
Copy link
Contributor

murraycadzow commented Sep 16, 2022

just before sort comes in, a good addition would be to include how to automatically number the lines after doing grep -v "^#" Mus_musculus.GRCm38.75_chr1.gtf | head -1 | tr '\t' '\n'

This could either be with nl or perhaps expanded on in the awk material as an example of when you might use NR e.g. grep -v "^#" Mus_musculus.GRCm38.75_chr1.gtf | head -1 | tr '\t' '\n' | awk '{print NR $0}', This is an extremely useful code snippet so that you can quickly know the column number(s) of what you want to extract out with cut or awk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants