Last updated: 2019-12-06

Checks: 2 0

Knit directory: PSYMETAB/

This reproducible R Markdown analysis was created with workflowr (version 1.5.0). The Checks tab describes the reproducibility checks that were applied when the results were created. The Past versions tab lists the development history.


Great! Since the R Markdown file has been committed to the Git repository, you know the exact version of the code that produced these results.

Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility. The version displayed above was the version of the Git repository at the time these results were generated.

Note that you need to be careful to ensure that all relevant files for the analysis have been committed to Git prior to generating the results (you can use wflow_publish or wflow_git_commit). workflowr only checks the R Markdown file, but you know if there are other scripts or data files that it depends on. Below is the status of the Git repository when the results were generated:


Ignored files:
    Ignored:    .drake/
    Ignored:    analysis/QC/
    Ignored:    data/processed/
    Ignored:    data/raw/

Untracked files:
    Untracked:  post_impute_qc.out

Unstaged changes:
    Deleted:    post_imputation_qc.log
    Deleted:    pre_imputation_qc.log
    Modified:   pre_impute_qc.out
    Deleted:    qc_part2.out

Note that any generated files, e.g. HTML, png, CSS, etc., are not included in this status report because it is ok for generated content to have uncommitted changes.


These are the previous versions of the R Markdown and HTML files. If you’ve configured a remote Git repository (see ?wflow_git_remote), click on the hyperlinks in the table below to view them.

File Version Author Date Message
Rmd b503ef0 Sjaarda Jennifer Lynn 2019-12-06 add more details to website
html b6cb027 Jenny Sjaarda 2019-12-06 Build site.
Rmd 487b5f5 Sjaarda Jennifer Lynn 2019-12-06 update website, add qc description

The following document outlines and summarizes the quality control and processing procedure that was followed to create a clean, imputed dataset.

randomize_IDs.r

  • Script run on CHUV computer before building GenomeStudio project.
  • Creates a new csv file which was used to create a GenomeStudio project with data provided by lab in Geneva.
  • Requires manual addition of header before uploading to GenomeStudio.
  • Some samples were found to be duplicates (i.e. 2 samples at 2 different time points were analyzed for the same individual) and they were recoded to have ID ${ID}002.

Pre quality control data prep

  • Processes sex and ethnicity files to be used in QC scripts.
  • Sex file was created according to the input specified on plink man page (FID, IID, sex [M/F]).
  • Ethnicity input file to be used in R script for comparison to genetically derived ethnic groups (by snpWeights).
  • Recodes ethnic groups as follows:
    • Changes French codes to English.
    • Changes missing to unknown.
    • Groups small ethnic groups to missing.
  • A1 rsid conversion file was updated to remove all SNPs labeled with a [.] (see ‘data/README.md’).

Quality control steps

results are saved to analysis/QC

  1. Preprocessing
  2. Strand alignment
  3. MAF zero
  4. Missingness
  5. Sex check
  6. Imputation (preparation and run)
  7. Run and download imputation
  8. Check imputation
  9. PLINK conversion
  • Output of Michigan Impuation server is in format chr:bp:ref:alt.
  • Convenient to have SNPs in regular rsIDs for extraction, etc.
  • If there is no known rsID, SNP name is left as chr:bp:ref:alt.
  • Reference file for determining rsIDs can be found here: ‘/data/sgg2/jenny/data/dbSNP/dbSNP_SNP_list_chr${chr}.txt’, which was processed according to description in ‘/SGG_generic/scripts/public_data.sh’.
  1. Extract typed SNPs
  2. Merge imputed SNPs
  3. Relatedness
  4. Ethnicty check and admixture estimation
  5. HWE check
  6. MAF check
  7. Final processing

Results