Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
N
Network medicine for schizophrenia
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Disnet
Network medicine
Network medicine for schizophrenia
Commits
b45adbe2
Commit
b45adbe2
authored
Apr 01, 2024
by
Maria Marin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update total diseases analysis.ipynb
parent
296cf508
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
analysis/total diseases analysis.ipynb
analysis/total diseases analysis.ipynb
+3
-3
No files found.
analysis/total diseases analysis.ipynb
View file @
b45adbe2
...
...
@@ -288,7 +288,7 @@
"df = pd.DataFrame(columns=[\"ID\", \"Drugs\", \"Dc_mean\", \"Dc_std\"])\n",
"\n",
"# empty file in which I will add the results\n",
"with open(\"
Rand_c
losest_distance_rand.csv\", 'w', newline='') as file:\n",
"with open(\"
C
losest_distance_rand.csv\", 'w', newline='') as file:\n",
" writer = csv.writer(file)\n",
" writer.writerow([\"ID\", \"Drugs\", \"Dc_mean\", \"Dc_std\"])\n",
"\n",
...
...
@@ -305,7 +305,7 @@
" for _, row in proximity_rand.iterrows():\n",
" results.append({\"ID\": dis, \"Drugs\": row[\"Drugs\"], \"Dc_mean\": row[\"dc_mean\"], \"Dc_std\": row[\"dc_std\"]})\n",
" \n",
" with open(\"
Rand_c
losest_distance_rand.csv\", 'a', newline='') as file:\n",
" with open(\"
C
losest_distance_rand.csv\", 'a', newline='') as file:\n",
" writer = csv.writer(file)\n",
" for result in results:\n",
" writer.writerow([result[\"ID\"], result[\"Drugs\"], result[\"Dc_mean\"], result[\"Dc_std\"]])\n"
...
...
@@ -318,7 +318,7 @@
"metadata": {},
"outputs": [],
"source": [
"rand_prox = pd.read_csv(\"
Rand_c
losest_distance_rand.csv\", sep = \",\")"
"rand_prox = pd.read_csv(\"
C
losest_distance_rand.csv\", sep = \",\")"
]
},
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment