-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtipsNtricks.rmd
85 lines (53 loc) · 1.74 KB
/
tipsNtricks.rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
---
title: "TipsnTricks"
output: github_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
## GitHub Documents
This is an R Markdown format used for publishing markdown documents to GitHub. When you click the **Knit** button all R code chunks are run and a markdown file (.md) suitable for publishing to GitHub is generated.
## Including Code
You can include R code in the document as follows:
```{r cars}
summary(cars)
```
## Including Plots
You can also embed plots, for example:
```{r pressure, echo=FALSE}
plot(pressure)
```
Note that the `echo = FALSE` parameter was added to the code chunk to prevent printing of the R code that generated the plot.
## Compute canada workflow
### Interactive jobs
To test job submissions, etc.
```bash
salloc --time=1:0:0 --mem=3G --ntasks=1 --account=def-rainvilp
module load python/3.10
module load scipy-stack
source ENV/bin/activate
python ../main.py
```
### Git on```{language}
```
git config --global user.name "DylanSutterlin"
git config --global user.email "[email protected]"
git init
git add .
git commit -m "first commit"
git remote add https://github.com/dylansutterlin/resting_state_hypnosis
git remote -v # to check that remote has been added
git checkout -b beluga # switch to beluga
git branch --show-current # just to print the branch if unsure
git push --set-upstream origin main # Asks username and password
# () to set up ssh
ssh-keygen -t ed25519 -C "[email protected]"
```
### BASH
```
cp [options] sourcefile targetfile
###
paths
/data/rainville/dylanSutterlin/Hypnosis_variables_20190114_pr_jc.xlsx
path = /data/rainville/HYPNOSIS_ASL_ANALYSIS/CBF_normalized
result = /data/rainville/dylanSutterlin/results/connectivity