Skip to content

Commit

Permalink
edits
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjaynagi committed Jul 24, 2023
1 parent 9a8c509 commit eac69c4
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
6 changes: 6 additions & 0 deletions docs/rna-seq-pop-docs/notebooks/installation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@
"\n",
"When we run RNA-Seq-Pop, it is important to use the `--use-conda` directive - this will automatically install all necessary packages into isolated software environments, so we do not have to install any other dependencies.\n",
"\n",
"Please also ensure your conda has channel priorities set to 'flexible', otherwise, conda may throw up errors when installing packages. You can do this with the following command:\n",
"\n",
"```\n",
"conda config --set channel_priority flexible\n",
"```\n",
"\n",
"#### Testing the setup\n",
"\n",
"To test whether RNA-Seq-Pop is configured correctly, from the root directory you can perform a dry-run on the test dataset, with the following command:\n",
Expand Down
1 change: 1 addition & 0 deletions workflow/envs/pythonGenomics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -259,5 +259,6 @@ dependencies:
- zstd=1.5.2=hfc55251_7
- papermill
- ipykernel
- plotly
- pip:
- wand
8 changes: 4 additions & 4 deletions workflow/notebooks/counts-qc.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"import pandas as pd \n",
"import plotly.express as px\n",
"\n",
"total_counts = pd.read_csv(\"results/quant/countStatistics.tsv\", sep=\"\\t\").rename(columns={'Sample':'sampleID'})\n",
"total_counts = pd.read_csv(\"results/counts/countStatistics.tsv\", sep=\"\\t\").rename(columns={'Sample':'sampleID'})\n",
"metadata = pd.read_csv(metadata_path, sep=\"\\t\")\n",
"\n",
"total_counts = total_counts.merge(metadata, how='left')"
Expand Down Expand Up @@ -2885,7 +2885,7 @@
}
],
"source": [
"map_df = pd.read_csv(\"results/quant/KallistoQuantSummary.tsv\", sep=\"\\t\").rename(columns={'sample':'sampleID'})\n",
"map_df = pd.read_csv(\"results/counts/KallistoQuantSummary.tsv\", sep=\"\\t\").rename(columns={'sample':'sampleID'})\n",
"map_df = map_df.merge(metadata)\n",
"px.bar(map_df,\n",
" x='sampleID', \n",
Expand Down Expand Up @@ -2927,7 +2927,7 @@
],
"source": [
"from wand.image import Image as WImage\n",
"img = WImage(filename='results/plots/heatmap_correlations.pdf')\n",
"img = WImage(filename='results/counts/heatmap_correlations.pdf')\n",
"img"
]
},
Expand Down Expand Up @@ -2963,7 +2963,7 @@
],
"source": [
"from wand.image import Image as WImage\n",
"img = WImage(filename='results/plots/PCA.pdf')\n",
"img = WImage(filename='results/counts/PCA.pdf')\n",
"img"
]
}
Expand Down
4 changes: 2 additions & 2 deletions workflow/notebooks/windowed-selection.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
" ylim=1, \n",
" save=True)\n",
" \n",
" fig = px.express(x=FstArray, y=midpoint, title=f'Fst {cohortNoSpaceText} | {contig}')\n",
" fig = px.line(x=FstArray, y=midpoint, title=f'Fst {cohortNoSpaceText} | {contig}')\n",
" fig.show()\n",
" \n",
" #### Population Branch Statistic (PBS) in windows ####\n",
Expand Down Expand Up @@ -157,7 +157,7 @@
" ylim=0.5, \n",
" save=True)\n",
" \n",
" fig = px.express(x=pbsArray, y=midpoint, title=f'PBS {cohortNoSpaceText} | {contig}')\n",
" fig = px.line(x=pbsArray, y=midpoint, title=f'PBS {cohortNoSpaceText} | {contig}')\n",
" fig.show()"
]
}
Expand Down

0 comments on commit eac69c4

Please sign in to comment.