|
1 | | ---- |
2 | | -title: "4 Uploading a Trio to Curated Trio Datasets" |
3 | | -author: "BenchHub Team" |
4 | | -date: "`r Sys.Date()`" |
5 | | -output: BiocStyle::html_document |
6 | | -vignette: > |
7 | | - %\VignetteIndexEntry{4 Upload Trio class} |
8 | | - %\VignetteEncoding{UTF-8} |
9 | | - %\VignetteEngine{knitr::rmarkdown} |
10 | | ---- |
11 | | - |
12 | | -# Instructions for Uploading a Trio to Curated Trio Datasets |
13 | | - |
14 | | -This guide provides step-by-step instructions for uploading a Trio object to the [Curated Trio Datasets sheet](https://docs.google.com/spreadsheets/d/1zEyB5957aXYq6LvI9Ma65Z7GStpjIDWL16frru73qiY/edit). Curated Trio Dataset is a list of datasets with proven utility. It includes creating a GitHub Personal Access Token (PAT) with gist write access and uploading data to Figshare. |
15 | | - |
16 | | - |
17 | | -## Step 1: Create a GitHub Personal Access Token (PAT) |
18 | | - |
19 | | -To upload metrics as a GitHub Gist, you need a GitHub PAT with gist write access. |
20 | | - |
21 | | -1. Log in to your GitHub account. |
22 | | -2. Navigate to **Settings** > **Developer settings** > **Personal access tokens** > **Tokens (classic)**. |
23 | | -3. Click **Generate new token**. |
24 | | -4. Select the following scopes: |
25 | | - - `gist` (for creating and managing gists) |
26 | | -5. Click **Generate token** and copy the token. |
27 | | - |
28 | | -### Set the PAT in R |
29 | | -Add the token to your environment in R: |
30 | | - |
31 | | -```r |
32 | | -Sys.setenv(GITHUB_PAT = "your_personal_access_token") |
33 | | -``` |
34 | | - |
35 | | -Replace `"your_personal_access_token"` with the token you copied. |
36 | | - |
37 | | -### Ensure `googlesheets4` is set up |
38 | | - |
39 | | -1. Install the `googlesheets4` package if you haven't already: |
40 | | - ```r |
41 | | - install.packages("googlesheets4") |
42 | | - ``` |
43 | | -2. Authenticate with your Google account: |
44 | | - ```r |
45 | | - googlesheets4::gs4_auth() |
46 | | - ``` |
47 | | - |
48 | | - |
49 | | -## Step 2: Add the Trio to Curated Trio Datasets |
50 | | - |
51 | | -1. In R, create a `Trio` object and ensure it is properly populated with data, supporting evidence, and metrics. |
52 | | -2. Use the `writeCTD()` method to upload the Trio metadata to the Curated Trio Datasets sheet: |
53 | | - |
54 | | -```r |
55 | | -trio$writeCTD(name = "Your Dataset Name") |
56 | | -``` |
57 | | - |
58 | | -3. Follow the prompts to: |
59 | | - - Save the dataset and supporting evidence locally (optional). |
60 | | - - Provide the Figshare URL. For more detailed instructions on uploading to Figshare, see below. |
61 | | - - Select the data type (e.g., omics, clinical, spatial, other). |
62 | | - - Confirm the upload of supporting evidence to Figshare. |
63 | | - |
64 | | - |
65 | | - |
66 | | -## Step 3: Verify the Upload |
67 | | - |
68 | | -1. Check the Curated Trio Datasets Google Sheet to ensure your dataset has been added: |
69 | | - [Curated Trio Datasets](https://docs.google.com/spreadsheets/d/1zEyB5957aXYq6LvI9Ma65Z7GStpjIDWL16frru73qiY/) |
70 | | - |
71 | | -2. Verify that the metrics have been uploaded as a GitHub Gist. |
72 | | - |
73 | | - |
74 | | - |
75 | | -## Notes |
76 | | - |
77 | | -- Ensure you have an active internet connection during the upload process. |
78 | | -- If you encounter any issues, check that your GitHub PAT and Figshare URL are correctly set. |
79 | | - |
80 | | -### Uploading Data to Figshare |
81 | | - |
82 | | -1. Log in to your Figshare account. |
83 | | -2. Click **Create a new item**. |
84 | | -3. Fill in the required metadata fields (e.g., title, description, tags). |
85 | | -4. Upload your dataset files (e.g., `.rds` files for the dataset and supporting evidence). |
86 | | - - NOTE: `writeCTD` can create the |
87 | | -5. Publish the item to make it publicly accessible. |
88 | | -6. Copy the Figshare URL of the published item. |
89 | | - |
90 | | - |
91 | | - |
92 | | -Happy uploading! |
| 1 | +--- |
| 2 | +title: "4 Uploading a Trio to Curated Trio Datasets" |
| 3 | +author: "BenchHub Team" |
| 4 | +date: "`r Sys.Date()`" |
| 5 | +output: BiocStyle::html_document |
| 6 | +vignette: > |
| 7 | + %\VignetteIndexEntry{4 Upload Trio class} |
| 8 | + %\VignetteEncoding{UTF-8} |
| 9 | + %\VignetteEngine{knitr::rmarkdown} |
| 10 | +--- |
| 11 | + |
| 12 | +# Instructions for Uploading a Trio to Curated Trio Datasets |
| 13 | + |
| 14 | +This guide provides step-by-step instructions for uploading a Trio object to the [Curated Trio Datasets sheet](https://docs.google.com/spreadsheets/d/1zEyB5957aXYq6LvI9Ma65Z7GStpjIDWL16frru73qiY/edit). Curated Trio Dataset is a list of datasets with proven utility. It includes creating a GitHub Personal Access Token (PAT) with gist write access and uploading data to Figshare. |
| 15 | + |
| 16 | + |
| 17 | +## Step 1: Create a GitHub Personal Access Token (PAT) |
| 18 | + |
| 19 | +To upload metrics as a GitHub Gist, you need a GitHub PAT with gist write access. |
| 20 | + |
| 21 | +1. Log in to your GitHub account. |
| 22 | +2. Navigate to **Settings** > **Developer settings** > **Personal access tokens** > **Tokens (classic)**. |
| 23 | +3. Click **Generate new token**. |
| 24 | +4. Select the following scopes: |
| 25 | + - `gist` (for creating and managing gists) |
| 26 | +5. Click **Generate token** and copy the token. |
| 27 | + |
| 28 | +### Set the PAT in R |
| 29 | +Add the token to your environment in R: |
| 30 | + |
| 31 | +```r |
| 32 | +Sys.setenv(GITHUB_PAT = "your_personal_access_token") |
| 33 | +``` |
| 34 | + |
| 35 | +Replace `"your_personal_access_token"` with the token you copied. |
| 36 | + |
| 37 | +### Ensure `googlesheets4` is set up |
| 38 | + |
| 39 | +1. Install the `googlesheets4` package if you haven't already: |
| 40 | + ```r |
| 41 | + install.packages("googlesheets4") |
| 42 | + ``` |
| 43 | +2. Authenticate with your Google account: |
| 44 | + ```r |
| 45 | + googlesheets4::gs4_auth() |
| 46 | + ``` |
| 47 | + |
| 48 | + |
| 49 | +## Step 2: Add the Trio to Curated Trio Datasets |
| 50 | + |
| 51 | +1. In R, create a `Trio` object and ensure it is properly populated with data, supporting evidence, and metrics. |
| 52 | +2. Use the `writeCTD()` method to upload the Trio metadata to the Curated Trio Datasets sheet: |
| 53 | + |
| 54 | +```r |
| 55 | +trio$writeCTD(name = "Your Dataset Name") |
| 56 | +``` |
| 57 | + |
| 58 | +3. Follow the prompts to: |
| 59 | + - Save the dataset and supporting evidence locally (optional). |
| 60 | + - Provide the Figshare URL. For more detailed instructions on uploading to Figshare, see below. |
| 61 | + - Select the data type (e.g., omics, clinical, spatial, other). |
| 62 | + - Confirm the upload of supporting evidence to Figshare. |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | +## Step 3: Verify the Upload |
| 67 | + |
| 68 | +1. Check the Curated Trio Datasets Google Sheet to ensure your dataset has been added: |
| 69 | + [Curated Trio Datasets](https://docs.google.com/spreadsheets/d/1zEyB5957aXYq6LvI9Ma65Z7GStpjIDWL16frru73qiY/) |
| 70 | + |
| 71 | +2. Verify that the metrics have been uploaded as a GitHub Gist. |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | +## Notes |
| 76 | + |
| 77 | +- Ensure you have an active internet connection during the upload process. |
| 78 | +- If you encounter any issues, check that your GitHub PAT and Figshare URL are correctly set. |
| 79 | + |
| 80 | +### Uploading Data to Figshare |
| 81 | + |
| 82 | +1. Log in to your Figshare account. |
| 83 | +2. Click **Create a new item**. |
| 84 | +3. Fill in the required metadata fields (e.g., title, description, tags). |
| 85 | +4. Upload your dataset files (e.g., `.rds` files for the dataset and supporting evidence). |
| 86 | + - NOTE: `writeCTD` can create the |
| 87 | +5. Publish the item to make it publicly accessible. |
| 88 | +6. Copy the Figshare URL of the published item. |
| 89 | + |
| 90 | + |
| 91 | +Happy uploading! |
| 92 | + |
| 93 | +# Session Info |
| 94 | + |
| 95 | +```{r} |
| 96 | +sessionInfo() |
| 97 | +``` |
0 commit comments