Vignettes are documents that outline topics in population genetics involving one or more R packages. These topics are based around biological questions and the type of data used in population genetics. They are generally more extensive than those found in package vignettes and are intended to provide R users with the necessary code and examples to solve biological questions.
The analyses outlined in the vignettes should be fast to run, ideally approximately two minutes or less. For example, if you are running permutations, set these to a small number in the workflow and encourage the user to increase the number themselves in order to reduce the time required.
An overview of and initial experiences with the contribution process, its building blocks, and their rationale has been published in the following paper:
Kamvar, Z. N., M. M. López-Uribe, S. Coughlan, N. J. Grünwald, H. Lapp, and S. Manel. 2016. “Developing Educational Resources for Population Genetics in R: An Open and Collaborative Approach.” Molecular Ecology Resources. doi:10.1111/1755-0998.12558.
Anyone who is confident in population genetics analysis in R is encouraged to contribute.
A good place to start is to examine all of the GitHub issues labeld “Wishlist”. Please comment on the issue if you wish to contribute so that we know who is taking responsibility.
Contributed vignettes should be written in R markdown. A template can be found in TEMPLATE.Rmd
(See the rendered example). The vignette should include example analysis and explanations using data that can be readily accessed in the public domain, e.g., the data that comes as part of some packages, so that users can replicate the analysis themselves. If no public data is available to address a particular biological question that you want to write a vignette for, this data can be uploaded to this repository also.
Overall, vignette submission will follow the guidelines in GitHub flow. Please create a new branch for each vignette to be submitted.
Since this process requires git, if you are having trouble installing git or accessing your command line, please take a look at our detailed tutorial on using git through R: Contributing with git2r.
If you are a new contributor, you will need to make sure you have git set up and a fork of this repository. Please follow these instructions carefully. If you have already set up your repository, go to the next section.
Fork
button (See GitHub’s tutorial).git clone https://github.com/YourAccount/popgenInfo.git
git remote add upstream https://github.com/NESCent/popgenInfo.git
If you have a vignette you would like to submit, please follow these instructions to submit it for review.
cd popgenInfo
git checkout master
sh git fetch upstream # grab all the changes from NESCent git merge upstream/master # add them to your local fork git push # push them up to your fork on github
git checkout -b Your_branch_name
.rstudio popgenInfo.Rproj
.TEMPLATE.Rmd
file and move any associated data to the data/ directory..Rmd
format into the use/ directory.git add use/yourfilename.Rmd data/yourdata.txt
.git commit
and add some short text describing what your file is.git push --set-upstream origin Your_branch_name
to push your branch to your remote forkCompare & review
or the pull request icon.Create pull request
. Once the request is approved, the file will be automatically sent to a remote server that compiles the document into a html file.2015-06-16_Parentage_Microsatellite.Rmd
) would be a vignette that was started on June 16th, 2015)We encourage contributors to use existing data sets for their vignettes. If uploading your data set to this repository, submit data files to the data/ directory in your branch in the same way as for your R markdown file. The data set used in a vignette should be < 200kb in size. If your data set is larger and your analysis will make sense on a subset of the data set, then please subset it to a smaller size for both submission and use in the vignette.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.