Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analyze-vamb #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
112,648 changes: 112,648 additions & 0 deletions DiarrheaExample/Vamb_output/clusters.tsv

Large diffs are not rendered by default.

Binary file added DiarrheaExample/Vamb_output/clusters.tsv.gz
Binary file not shown.
112,649 changes: 112,649 additions & 0 deletions DiarrheaExample/Vamb_output/coverage.tsv

Large diffs are not rendered by default.

Binary file added DiarrheaExample/Vamb_output/latent.npz
Binary file not shown.
Binary file added DiarrheaExample/Vamb_output/lengths.npz
Binary file not shown.
Binary file added DiarrheaExample/Vamb_output/mask.npz
Binary file not shown.
Binary file added DiarrheaExample/Vamb_output/tnf.npz
Binary file not shown.
550 changes: 550 additions & 0 deletions Other/Vamb_viz.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion R/Mouse_example.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ group_variable <- "Diet"

We confirm that the mice on high-fat diet really put more weight on.

```{r plot_metadata, fig.height=10mm}
```{r plot_metadata, fig.height=4.5, fig.width=3 }
ggplot(metadata, aes(x = Diet, y = Body_weight)) +
geom_boxplot() +
geom_beeswarm(cex = 5) +
Expand Down
47 changes: 39 additions & 8 deletions get_atlas_files.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python

import os
import yaml
Expand All @@ -7,13 +7,44 @@

from paramiko import RSAKey

# Define your output directory and base path on server
output_dir = 'DiarrheaExample'
atlas_version = "v2.17"
username = "me"
server="myserver.server.com"
base_path_server = '/home/user/my_atlas_run'
private_key_path = None # "C:/Users/User/.ssh/id_rsa"

connection_details_file=".connection_details.yaml"

default_values = {
"output_dir": 'atlas_data',
"atlas_version": "v2.17",
"username": "me",
"server":"myserver.server.com",
"base_path_server": '/home/user/my_atlas_run',
"private_key_path": None # "C:/Users/User/.ssh/id_rsa"
}





if os.path.exists(connection_details_file):

with open(connection_details_file) as file:
connection_dict = yaml.safe_load(file)

# load all values as variables in the current namespace
for key, value in connection_dict.items():

print(f'{key} = "{value}"')
exec(f'{key} = value')

else:
# ask for the values via the command line and store them in the connection details file, propose default values

with open(connection_details_file, 'w') as file:
yaml.dump(default_values, file)

print(f"Please fill in the connection details in the file {connection_details_file} and run the script again.")
exit(1)





if private_key_path is None:
Expand Down