Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fdcns
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gorka Fraga Gonzalez
fdcns
Commits
aba84796
Commit
aba84796
authored
9 months ago
by
Gorka Fraga Gonzalez
Browse files
Options
Downloads
Patches
Plain Diff
revised comments
parent
3ea2d574
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
webpage_contents/templates/templates_for_publications/YYYYMMDD_Firstname_LastName/index.qmd
+13
-8
13 additions, 8 deletions
...es_for_publications/YYYYMMDD_Firstname_LastName/index.qmd
with
13 additions
and
8 deletions
webpage_contents/templates/templates_for_publications/YYYYMMDD_Firstname_LastName/index.qmd
+
13
−
8
View file @
aba84796
...
...
@@ -16,6 +16,7 @@ author:
code-fold: true
---
```{r userinputs}
#| output: false
#| echo: false
...
...
@@ -31,28 +32,32 @@ inputs <- read.csv(file = 'input_mice.csv')
# Supplemental Results
Note: Supplemental Methods are supposed to go to beamtime pages
## Links to protocol pages
```{r}
# | warning: false
folders <- unique(cbind(inputs$Data_type,inputs$Facility_name_mon_YYYY)) #unique combination of experiment type and facility
paths <- as.data.frame(file.path(apply(folders, 1, paste, collapse = .Platform$file.sep), 'protocols')) #put together the paths rowwise
colnames(paths) <- 'Protocols'
library(dplyr)
# This code chunk gathers the rows from tables specified in the inputs
inputs <- read.csv(file = 'input_mice.csv')
# Use data type and facility information to find the path to the relevant protocols
folders <- unique(cbind(inputs$Data_type,inputs$Facility_name_mon_YYYY)) # find table's unique variations of experiment type and facility
paths <- as.data.frame(file.path(apply(folders, 1, paste, collapse = .Platform$file.sep), 'protocols')) #put together the paths
colnames(paths) <- 'Protocols'
# Add
location
# Add
HTML code so that it becomes a clickable link
paths$Protocols <- paste0('<a href=\'',paths$Protocols,'\' target=\'_blank\'>', paths$Protocols,'</a>')
file.path(here::here(), apply(folders, 1, paste, collapse = .Platform$file.sep), 'protocols')
# Render table
DT::datatable(paths, options = list(dom = 't'), escape = FALSE, rownames = FALSE, )
```
##
Synchrotron µCT Data
##
Mice information
```{r}
# | warning: false
...
...
@@ -69,7 +74,7 @@ for (i in 1:nrow(inputs)){
data_used <- do.call(rbind,data_used)
data_used$Subject_pubID <- inputs$Subject_pubID # Add additional input column
# add the subject index for publication as first variable
data_used <- relocate(data_used, Subject_pubID, .before = 1)
#Display table
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment