# Example of how to run the functions
# Find what the correct id is for the project
:::admin_get_project_ids()
ukbAid# Confirm the username to use
:::gh_get_users()
ukbAid# Then create the project!
:::admin_start_approved_project("USER", "PROJECT_ID") ukbAid
Administration
Warning
Still in development.
Adding users to the RAP project
- In the UKB AMS go to “Edit application”, then go to the “Add member” form and select the scroll down menu, using either AUH or AU.
- In DNAnexus, go to
Project -> Share project
(people icon to top right, add by username or email address). - After adding the users, delete their email from the survey sheet, since we don’t need it.
Adding users to the GitHub repos
- To add someone to the GitHub UKB team, use
gh_add_user_to_team()
. - To add a contributor to a project, use the function
gh_add_user_to_repo()
.
Todo after proposal submission
- Review the created Pull Request, provide any feedback or request clarifications if necessary.
- If changes necessary, main applicant should update the file on their own.
Todo after project acceptance
- See a list of approved projects with
admin_get_projects()
andgh_get_repos()
for projects on GitHub. - Run
admin_start_approved_project()
, using the user name and project abbreviation to create the project, add it to the Steno GitHub, set up permissions, and add the user to the repo.
General admin
On GitHub or own computer
Need to set a SURVEY_ID
variable for the Google Forms Sheet ID (the unique string that comes after the /spreadsheets/d/
in the URL). This needs to be set on GitHub as well as on your own computer if you are going to download the survey data.
- On GitHub, add a secret in Settings called
SURVEY_ID
with the Google Sheet ID. - On your computer, you can either add a new variable in the form of
SURVEY_ID=""
in a.Renviron
file or always get asked for it whenever you run the functions that require the variable (which use theukbAid:::get_survey_id()
function).
Uploading to Zenodo
For protocols, the code to use would be:
<- here::here("path/to/protocol.qmd")
path <- zen_create_protocol_pdf(path)
pdf_path <- zen_create_file_record(
client path = pdf_path,
metadata = zen_create_protocol_metadata(path),
token = zen_get_token(),
# Test it in the sandbox first
sandbox = TRUE
)
Always test it in the sandbox first, which you can check that it uploads by going to the Zenodo sandbox.