Skip to content

Commit

Permalink
Add the information for postcards
Browse files Browse the repository at this point in the history
  • Loading branch information
lcolladotor committed Jul 5, 2023
1 parent f4d21c9 commit c544b4c
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 10 deletions.
10 changes: 5 additions & 5 deletions 08_recount3_intro.R
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
## ----'start', message=FALSE------------------------------------------
## ----'start', message=FALSE----
## Load recount3 R package
library("recount3")


## ----'quick_example'-------------------------------------------------
## ----'quick_example'--------
## Lets download all the available projects
human_projects <- available_projects()

Expand All @@ -23,7 +23,7 @@ rse_gene_SRP009615
lobstr::obj_size(rse_gene_SRP009615)


## ----"interactive_display", eval = FALSE-----------------------------
## ----"interactive_display", eval = FALSE----
## ## Explore available human projects interactively
## proj_info_interactive <- interactiveDisplayBase::display(human_projects)
## ## Choose only 1 row in the table, then click on "send".
Expand All @@ -34,15 +34,15 @@ lobstr::obj_size(rse_gene_SRP009615)
## rse_gene_interactive <- create_rse(proj_info_interactive)


## ----"tranform_counts"-----------------------------------------------
## ----"tranform_counts"------
## We'll compute read counts, which is what most downstream software
## uses.
## For other types of transformations such as RPKM and TPM, use
## transform_counts().
assay(rse_gene_SRP009615, "counts") <- compute_read_counts(rse_gene_SRP009615)


## ----"expand_attributes"---------------------------------------------
## ----"expand_attributes"----
## Lets make it easier to use the information available for this study
## that was provided by the original authors of the study.
rse_gene_SRP009615 <- expand_sra_attributes(rse_gene_SRP009615)
Expand Down
18 changes: 18 additions & 0 deletions 15_misc.R
Original file line number Diff line number Diff line change
@@ -1 +1,19 @@
## ----postcards_proj, eval = FALSE----
## ## Create an RStudio project first with this particular name
## usethis::create_project("YourGitHubUsername.github.io")
##
## ## Configure Git and GitHub
## ## If you don't have git, check "Happy Git and GitHub for the useR" available
## ## at https://happygitwithr.com/
## usethis::use_git()
## usethis::use_github()


## ----postcards_create, eval = FALSE----
## ## Choose only one of these options, whichever you liked the most
## postcards::create_postcard(template = "jolla")
## postcards::create_postcard(template = "jolla-blue")
## postcards::create_postcard(template = "trestles")
## postcards::create_postcard(template = "onofre")
## postcards::create_postcard(template = "solana")

59 changes: 54 additions & 5 deletions 15_misc.Rmd
Original file line number Diff line number Diff line change
@@ -1,10 +1,59 @@
# TBD
# Miscellaneous

Instructor: Leo

## Options
## postcards

<iframe class="speakerdeck-iframe" frameborder="0" src="https://speakerdeck.com/player/b7d3bbee06d14a548a664e76ea9110d8" title="Updating spatialLIBD: from SingleCellExperiment to VisiumExperiment classes" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true" style="border: 0px; background: padding-box padding-box rgba(0, 0, 0, 0.1); margin: 0px; padding: 0px; border-radius: 6px; box-shadow: rgba(0, 0, 0, 0.2) 0px 5px 40px; width: 560px; height: 420px;" data-ratio="1.3333333333333333"></iframe>

<iframe width="560" height="315" src="https://www.youtube.com/embed/Q6eRD8Nyxfk" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

<iframe width="560" height="315" src="https://www.youtube.com/embed/0S_tRne5UNk" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

_The above video is in Spanish._

* Similar to https://pages.github.com/
* `postcards` has 5 templates https://github.com/seankross/postcards
* Your website should ideally say something about you, your interests, your projects, and how to contact you. Here are some examples with their source code:
- https://amy-peterson.github.io/ + https://github.com/amy-peterson/amy-peterson.github.com
- http://jtleek.com/ + https://github.com/jtleek/jtleek.github.io
- http://aejaffe.com/ + https://github.com/andrewejaffe/andrewejaffe.github.io
- https://hadley.nz/ + https://github.com/hadley/hadley.github.com
- https://emarquezz.github.io/ + https://github.com/emarquezz/emarquezz.github.io
- https://bpardo99.github.io/ + https://github.com/bpardo99/bpardo99.github.io
- https://daianna21.github.io/ + https://github.com/daianna21/daianna21.github.io
- https://reneegf.github.io/ + https://github.com/reneegf/reneegf.github.io


```{r postcards_proj, eval = FALSE}
## Create an RStudio project first with this particular name
usethis::create_project("YourGitHubUsername.github.io")
## Configure Git and GitHub
## If you don't have git, check "Happy Git and GitHub for the useR" available
## at https://happygitwithr.com/
usethis::use_git()
usethis::use_github()
```

Create your website template using `postcards` by choosing one of the options below. This will create an `index.Rmd` file.

```{r postcards_create, eval = FALSE}
## Choose only one of these options, whichever you liked the most
postcards::create_postcard(template = "jolla")
postcards::create_postcard(template = "jolla-blue")
postcards::create_postcard(template = "trestles")
postcards::create_postcard(template = "onofre")
postcards::create_postcard(template = "solana")
```

* Fill out your information using `Markdown` syntax. For example: https://github.com/andrewejaffe/andrewejaffe.github.io/blob/master/index.Rmd#L17-L31.
* Add links to your own profiles like at https://github.com/andrewejaffe/andrewejaffe.github.io/blob/master/index.Rmd#L7-L12
* Click the `knit` blue button on RStudio. This is the same as running `rmarkdown::render("index.Rmd")` on the console. This will create the `index.html` file.
* Make a `git commit` to save your new files including `index.html` and then `git push` to upload your files to GitHub.
* You will soon have a publicly website available at https://YourGitHubUsername.github.io/
* Feel free to keep editing your website. Remember to `knit`, then `git add` + `git commit` the new versions of your files, then `git push` to upload them to GitHub.
* Share your website and source code through the [`random`](https://cshldata-2023.slack.com/archives/C058SB8TB1C) Slack channel.
* (optional) Announce your new website using the `#rstats` hasthag and/or the author of `postcards` https://twitter.com/seankross.

These are the options I've heard interest in so far:

* `postcards` for making your own personal website
- Requires a `git` and `GitHub` setup

0 comments on commit c544b4c

Please sign in to comment.