How to extract selected cohort in csv format

Hello,

I would like to extract a cohort of cases from my dataset with at least one of the following diagnoses (as defined by ICD codes):

  • M4712: Other spondylosis with myelopathy (Cervical region)
  • M500: Cervical disk disorder with myelopathy
  • M9931: Osseous stenosis of neural canal (Cervical region)
  • M9941: Connective tissue stenosis of neural canal (Cervical region)
  • M9951: Intervertebral disc stenosis of neural canal (Cervical region)

I would then like to characterise this cohort's baseline characteristics (age, sex, etc) and genotype for a gene defined by 2 SNPs. 

I would ideally like this data to be in tabular format with each variable in a separate column in the form of a CSV file that I can then read into RStudio. However, I am struggling to do this despite having read the documentation from this website: https://dnanexus.gitbook.io/uk-biobank-rap/getting-started/working-with-ukb-data

Any help would be much appreciated. Thanks in advance.

Comments

1 comment

Please sign in to leave a comment.