Skip to content

Commit 8e7b641

Browse files
committed
markdown source builds
Auto-generated via `{sandpaper}` Source : 76b12f0 Branch : main Author : Naupaka Zimmerman <[email protected]> Time : 2024-11-09 03:49:22 +0000 Message : Merge pull request #303 from JasonJWilliamsNY/patch-for-299 Patch for #299
1 parent 2f15cf6 commit 8e7b641

File tree

4 files changed

+1074
-6
lines changed

4 files changed

+1074
-6
lines changed

01-r-basics.md

+10-5
Original file line numberDiff line numberDiff line change
@@ -518,10 +518,13 @@ human_chr_number * 2
518518

519519
## Exercise: Compute the golden ratio
520520

521+
The [golden ratio](https://en.wikipedia.org/wiki/Golden_ratio) is a famous
522+
mathematical constant associated with beauty, architecture, and [art](https://www.mos.org/leonardo/activities/golden-ratio.html).
523+
521524
One approximation of the golden ratio (φ) can be found by taking the sum of 1
522-
and the square root of 5, and dividing by 2 as in the example above. Compute
525+
and the square root of 5, and dividing that sum by 2, as in the example above. Compute
523526
the golden ratio to 3 digits of precision using the `sqrt()` and `round()`
524-
functions. Hint: remember the `round()` function can take 2 arguments.
527+
functions. Hint: the `round()` function can take 2 arguments.
525528

526529
::::::::::::::: solution
527530

@@ -536,7 +539,8 @@ round((1 + sqrt(5)) / 2, digits = 3)
536539
[1] 1.618
537540
```
538541

539-
Notice that you can place one function inside of another.
542+
Notice that you can place one function inside of another, and that you can use
543+
the 'digits' argument to return the desired precision.
540544

541545

542546

@@ -605,6 +609,7 @@ Let's create a few more vectors to play around with:
605609
``` r
606610
# Some interesting human SNPs
607611
# while accuracy is important, typos in the data won't hurt you here
612+
# feel free to copy and paste
608613

609614
snps <- c("rs53576", "rs1815739", "rs6152", "rs1799971")
610615
snp_chromosomes <- c("3", "11", "X", "6")
@@ -910,8 +915,8 @@ c("ACTN3","APOA5") %in% snp_genes
910915
## Tip: What's the difference between the `%in% and the `==` operators?
911916

912917
The `%in%` operator is used to test if the elements of a vector are
913-
present in another vector. In the example above, if both "ACTN3" and "APOA5" are in
914-
the vector `snp_genes`, then R will return `TRUE TRUE` since they are both present.
918+
present in another vector. In the example above, if both "ACTN3" and "APOA5" are in
919+
the vector `snp_genes`, then R will return `TRUE TRUE` since they are both present.
915920
If "ACTN3" is but "APOA5" is not in `snp_genes`, then R will return `TRUE FALSE`. The `==` operator
916921
is used to test if two vectors are exactly equal. For example, if you wanted to know if the vector `c(1, 2, 3)`
917922
was equal to the vector `c(1, 2, 3)`, you could use the `==` operator. One trick people sometimes

config.yaml

+88
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
#------------------------------------------------------------
2+
# Values for this lesson.
3+
#------------------------------------------------------------
4+
5+
# Which carpentry is this (swc, dc, lc, or cp)?
6+
# swc: Software Carpentry
7+
# dc: Data Carpentry
8+
# lc: Library Carpentry
9+
# cp: Carpentries (to use for instructor training for instance)
10+
# incubator: The Carpentries Incubator
11+
carpentry: 'dc'
12+
13+
# Overall title for pages.
14+
title: 'Intro to R and RStudio for Genomics'
15+
16+
# Date the lesson was created (YYYY-MM-DD, this is empty by default)
17+
created: '2018-03-12'
18+
19+
# Comma-separated list of keywords for the lesson
20+
keywords: 'software, data, lesson, The Carpentries'
21+
22+
# Life cycle stage of the lesson
23+
# possible values: pre-alpha, alpha, beta, stable
24+
life_cycle: 'beta'
25+
26+
# License of the lesson materials (recommended CC-BY 4.0)
27+
license: 'CC-BY 4.0'
28+
29+
# Link to the source repository for this lesson
30+
source: 'https://github.com/datacarpentry/genomics-r-intro'
31+
32+
# Default branch of your lesson
33+
branch: 'main'
34+
35+
# Who to contact if there are any issues
36+
37+
38+
# Navigation ------------------------------------------------
39+
#
40+
# Use the following menu items to specify the order of
41+
# individual pages in each dropdown section. Leave blank to
42+
# include all pages in the folder.
43+
#
44+
# Example -------------
45+
#
46+
# episodes:
47+
# - introduction.md
48+
# - first-steps.md
49+
#
50+
# learners:
51+
# - setup.md
52+
#
53+
# instructors:
54+
# - instructor-notes.md
55+
#
56+
# profiles:
57+
# - one-learner.md
58+
# - another-learner.md
59+
60+
# Order of episodes in your lesson
61+
episodes:
62+
- 00-introduction.Rmd
63+
- 01-r-basics.Rmd
64+
- 02-data-prelude.Rmd
65+
- 03-basics-factors-dataframes.Rmd
66+
- 04-bioconductor-vcfr.Rmd
67+
- 05-dplyr.Rmd
68+
- 06-data-visualization.Rmd
69+
- 07-r-help.Rmd
70+
71+
# Information for Learners
72+
learners:
73+
74+
# Information for Instructors
75+
instructors:
76+
77+
# Learner Profiles
78+
profiles:
79+
80+
# Customisation ---------------------------------------------
81+
#
82+
# This space below is where custom yaml items (e.g. pinning
83+
# sandpaper and varnish versions) should live
84+
85+
86+
url: 'https://datacarpentry.github.io/genomics-r-intro'
87+
analytics: carpentries
88+
lang: en

md5sum.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"config.yaml" "b91cd97fa3b408bd1ac0a00e67ab3219" "site/built/config.yaml" "2024-11-05"
55
"index.md" "7f9c30e6487338a0c3f8ecc4018873ab" "site/built/index.md" "2024-11-05"
66
"episodes/00-introduction.Rmd" "03f55a33cafd3e5f3b407315c509a389" "site/built/00-introduction.md" "2024-11-05"
7-
"episodes/01-r-basics.Rmd" "f20944fd715ab905cb243f6a15ccff75" "site/built/01-r-basics.md" "2024-11-05"
7+
"episodes/01-r-basics.Rmd" "b45f835c7d4314da15066f1f2cb86b21" "site/built/01-r-basics.md" "2024-11-09"
88
"episodes/02-data-prelude.Rmd" "ab2b1fd3cdaae919f9e409f713a0a8ad" "site/built/02-data-prelude.md" "2024-11-05"
99
"episodes/03-basics-factors-dataframes.Rmd" "0bb7c8d7807eea75f14ce8ca3d22febf" "site/built/03-basics-factors-dataframes.md" "2024-11-05"
1010
"episodes/04-bioconductor-vcfr.Rmd" "10eb69b4697d7ecb9695d36c0d974208" "site/built/04-bioconductor-vcfr.md" "2024-11-05"

0 commit comments

Comments
 (0)