Skip to content

Creating instrumental variable for mendelian randomisation - in Ubuntu #13

@rmgpanw

Description

@rmgpanw

Problem summary

Marker	Chrom	Pos	Allele1	Allele2	Ncases	Ncontrols	GC.Pvalue	Overall
rs12083781	1	796375	C	T	16144	17832	0.0829	+
rs75932129	1	796767	A	G	16144	17832	0.101	-
rs58013264	1	797440	C	T	16144	17832	0.0836	+
rs10900604	1	798400	G	A	16144	17832	0.0967	+
rs11240777	1	798959	A	G	16144	17832	0.102	+
rs61768212	1	801467	C	G	16144	17832	0.0846	+
rs7553096	1	802026	A	G	16144	17832	0.0787	+
rs10157494	1	802496	T	C	16144	17832	0.103	+
rs7526310	1	804759	T	C	16144	17832	0.0799	+

or download here: sample.txt

  • I would like to filter filter for only those SNPs with a 'GC.Pvalue' of significance p < 0.00001

I have tried the following, which does not work

awk -F '{if ( $8 = 0.0000.) print $0 }' sample.txt

I get 'syntax error' when I run this with the sample.txt file

Could someone please advise me on how to improve on this? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    *NIXquestion related to UNIX-like OSbugSomething isn't workingcommand-lineStuff we do via command line / terminal interface

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions