Last updated: 2021-08-19
Checks: 7 0
Knit directory: IITA_2021GS/
This reproducible R Markdown analysis was created with workflowr (version 1.6.2). 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 job! The global environment was empty. Objects defined in the global environment can affect the analysis in your R Markdown file in unknown ways. For reproduciblity it’s best to always run the code in an empty environment.
The command set.seed(20210504)
was run prior to running the code in the R Markdown file. Setting a seed ensures that any results that rely on randomness, e.g. subsampling or permutations, are reproducible.
Great job! Recording the operating system, R version, and package versions is critical for reproducibility.
Nice! There were no cached chunks for this analysis, so you can be confident that you successfully produced the results during this run.
Great job! Using relative paths to the files within your workflowr project makes it easier to run your code on other machines.
Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility.
The results in this page were generated with repository version 182b83c. See the Past versions tab to see a history of the changes made to the R Markdown and HTML files.
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: .DS_Store
Ignored: .Rhistory
Ignored: .Rproj.user/
Ignored: analysis/.DS_Store
Ignored: code/.DS_Store
Ignored: data/.DS_Store
Untracked files:
Untracked: data/DatabaseDownload_2021Aug08/
Untracked: data/DatabaseDownload_2021May04/
Untracked: data/GBSdataMasterList_31818.csv
Untracked: data/IITA_GBStoPhenoMaster_33018.csv
Untracked: data/NRCRI_GBStoPhenoMaster_40318.csv
Untracked: data/PedigreeGeneticGainCycleTime_aafolabi_01122020.xls
Untracked: data/Report-DCas21-6038/
Untracked: data/blups_forGP.rds
Untracked: data/chr1_RefPanelAndGSprogeny_ReadyForGP_72719.fam
Untracked: data/dosages_IITA_2021Aug09.rds
Untracked: data/haps_IITA_2021Aug09.rds
Untracked: data/recombFreqMat_1minus2c_2021Aug02.qs
Untracked: output/
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 repository in which changes were made to the R Markdown (analysis/convertDCas21_6038_ToVCF.Rmd
) and HTML (docs/convertDCas21_6038_ToVCF.html
) files. If you’ve configured a remote Git repository (see ?wflow_git_remote
), click on the hyperlinks in the table below to view the files as they were in that past version.
File | Version | Author | Date | Message |
---|---|---|---|---|
html | 1c03315 | wolfemd | 2021-08-11 | Build site. |
html | a3150ab | wolfemd | 2021-08-09 | Build site. |
Rmd | 6f2057f | wolfemd | 2021-08-09 | Publish project. Imputation completed. Run and complete ‘cleanTPdata’ step. |
screen;
cd ~/IITA_2021GS/;
R;
::install_github("wolfemd/genomicMateSelectR", ref = 'master') devtools
library(tidyverse); library(magrittr);
library(genomicMateSelectR)
<-here::here("data/Report-DCas21-6038","Report_6038_VCF_Ref_Version6.txt")
dartvcfInput<-here::here("data/Report-DCas21-6038","Report_6038_Counts_Ref_Version6.csv")
dartcountsInput<-here::here("data/Report-DCas21-6038","DCas21_6038")
outName<-2; nskipcounts<-3; ncores<-20 nskipvcf
Manual check that the files read in corretly.
<-read.table(dartvcfInput,
vcfstringsAsFactors = F,skip = nskipvcf, header = T, sep = "\t", comment.char = "")
<-read.csv(dartcountsInput, stringsAsFactors = F,header = T,skip=nskipcounts)
readCounts
dim(vcf)
# [1] 13603 1485
dim(readCounts)
# [1] 27206 1519
#
# # Initial look at names....
colnames(readCounts)[1:100]
# [1] "AlleleID" "CloneID"
# [3] "ClusterTempIndex" "AlleleSequence"
# [5] "TrimmedSequence" "TrimmedSequence_plus_Strand"
# [7] "Short" "Lowcomplexity"
# [9] "Chrom_Cassava_v61" "ChromPos_Cassava_v61"
# [11] "SNP_ChromPos_Cassava_v61" "AlnCnt_Cassava_v61"
# [13] "AlnEvalue_Cassava_v61" "Strand_Cassava_v61"
# [15] "SeqDiff_Cassava_v61" "ClusterConsensusSequence"
# [17] "ClusterSize" "AlleleSeqDist"
# [19] "SNP" "SnpPosition"
# [21] "CallRate" "OneRatioRef"
# [23] "OneRatioSnp" "FreqHomRef"
# [25] "FreqHomSnp" "FreqHets"
# [27] "PICRef" "PICSnp"
# [29] "AvgPIC" "AvgCountRef"
# [31] "AvgCountSnp" "RatioAvgCountRefAvgCountSnp"
# [33] "FreqHetsMinusFreqMinHom" "AlleleCountsCorrelation"
# [35] "aggregateTagsTotal" "DerivedCorrMinusSeedCorr"
# [37] "RepRef" "RepSNP"
# [39] "RepAvg" "PicRepRef"
# [41] "PicRepSNP" "TotalPicRepRefTest"
# [43] "TotalPicRepSnpTest" "TMS20F1286P0032_A35051"
# [45] "IITA.TMS.IBA090454_A35123" "TMS20F1583P0053_A35131"
# [47] "TMS20F1048P0026_A35138" "TMS20F1286P0007_A35059"
# [49] "TMS20F1677P0003_A35067" "TMS20F1679P0035_A35075"
# [51] "TMS20F1613P0027_A35083" "TMS20F1286P0017_A35091"
# [53] "IITA.TMS.IBA090091_A35099" "TMS20F1621P0005_A35107"
# [55] "TMS20F1621P0001_A35115" "TMS20F1613P0022_A35052"
# [57] "TMS20F1679P0037_A35124" "TMS20F1589P0087_A35132"
# [59] "TMS20F1048P0031_A35139" "TMS20F1582P0024_A35060"
# [61] "TMS20F1589P0070_A35068" "IITA.TMS.IBA051632_A35076"
# [63] "TMS20F1613P0032_A35084" "TMS20F1590P0055_A35092"
colnames(vcf)[1:30]
# [1] "X.CHROM" "POS"
# [3] "ID" "REF"
# [5] "ALT" "QUAL"
# [7] "FILTER" "INFO"
# [9] "FORMAT" "TMS20F1286P0032_A35051"
# [11] "IITA.TMS.IBA090454_A35123" "TMS20F1583P0053_A35131"
# [13] "TMS20F1048P0026_A35138" "TMS20F1286P0007_A35059"
# [15] "TMS20F1677P0003_A35067" "TMS20F1679P0035_A35075"
# [17] "TMS20F1613P0027_A35083" "TMS20F1286P0017_A35091"
# [19] "IITA.TMS.IBA090091_A35099" "TMS20F1621P0005_A35107"
# [21] "TMS20F1621P0001_A35115" "TMS20F1613P0022_A35052"
# [23] "TMS20F1679P0037_A35124" "TMS20F1589P0087_A35132"
# [25] "TMS20F1048P0031_A35139" "TMS20F1582P0024_A35060"
# [27] "TMS20F1589P0070_A35068" "IITA.TMS.IBA051632_A35076"
# [29] "TMS20F1613P0032_A35084" "TMS20F1590P0055_A35092"
# rm(vcf,readCounts); gc()
::convertDart2vcf(dartvcfInput,dartcountsInput,outName,
genomicMateSelectRnskipvcf=2,nskipcounts=3,ncores)
# VCF written successfully
# However, see warnings for future function dev.
# 5: The `path` argument of `write_lines()` is deprecated as of readr 1.4.0.
# Please use the `file` argument instead.
# This warning is displayed once every 8 hours.
# Call `lifecycle::last_warnings()` to see where this warning was generated.
# 6: In write.table(tmp, paste0(outName, ".vcf"), append = T, sep = "\t", :
# appending column names to file
Split the genome-wide VCF into per-chromosome VCFs for imputation.
require(furrr); plan(multisession, workers = 18)
options(future.globals.maxSize=+Inf); options(future.rng.onMisuse="ignore")
<-here::here("data/Report-DCas21-6038","DCas21_6038.vcf.gz")
vcfIn<-"--minDP 4 --maxDP 50" # because using GT not PL for impute (Beagle5)
filters<-here::here("data/Report-DCas21-6038/")
outPath<-"DCas21_6038"
outSuffix
future_map(1:18,
~genomicMateSelectR::splitVCFbyChr(Chr=.,
vcfIn=vcfIn,filters=filters,
outPath=outPath,
outSuffix=outSuffix))
plan(sequential)
sessionInfo()
R version 4.1.0 (2021-05-18)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Big Sur 10.16
Matrix products: default
BLAS: /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRblas.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] workflowr_1.6.2
loaded via a namespace (and not attached):
[1] Rcpp_1.0.7 whisker_0.4 knitr_1.33 magrittr_2.0.1
[5] R6_2.5.0 rlang_0.4.11 fansi_0.5.0 stringr_1.4.0
[9] tools_4.1.0 xfun_0.25 utf8_1.2.2 git2r_0.28.0
[13] jquerylib_0.1.4 htmltools_0.5.1.1 ellipsis_0.3.2 rprojroot_2.0.2
[17] yaml_2.2.1 digest_0.6.27 tibble_3.1.3 lifecycle_1.0.0
[21] crayon_1.4.1 later_1.2.0 sass_0.4.0 vctrs_0.3.8
[25] promises_1.2.0.1 fs_1.5.0 glue_1.4.2 evaluate_0.14
[29] rmarkdown_2.10 stringi_1.7.3 bslib_0.2.5.1 compiler_4.1.0
[33] pillar_1.6.2 jsonlite_1.7.2 httpuv_1.6.1 pkgconfig_2.0.3