Skip to content

Commit

Permalink
extended operation in the run_me script
Browse files Browse the repository at this point in the history
  • Loading branch information
aedawid committed Sep 21, 2022
1 parent 892b84e commit 5461058
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 8 deletions.
3 changes: 0 additions & 3 deletions ideogram/README.txt

This file was deleted.

2 changes: 1 addition & 1 deletion ideogram/database/annotations/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<html>
<head>
<title>Index of /</title>
<title>Index of /database</title>
<style>
* {
font-family: sans-serif;
Expand Down
6 changes: 5 additions & 1 deletion ideogram/database/bands/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<html>
<head>
<title>Index of /</title>
<title>Index of /database</title>
<style>
* {
font-family: sans-serif;
Expand Down Expand Up @@ -32,6 +32,10 @@ <h1>Index of /database/bands</h1>
<td><p style="display: none">custom-2.json</p><img style="margin-right: 5px; max-width: 20px" src="data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2QcUFSoXYuvT6wAABdlJREFUaIHtWUtvHTUU/o5nmse9AVoF9cFDJAFKA1J3LCv4AWxYgErFphX8AdZddItYkRULQEItFYlaNuxBSEhI0KJWYlG1qEFAIgoFFiRNbm5mDovx49hjz517b6QKqUe6sT22x99nf+fY4wAP7IGNZZSqOH/5/JFJVp/vFuWLALLqKQPs2rDXY5Q6BhHtkFK/oMQXxL13T516+86eEFi5dPGrEydefunwwcPU0GxkK4oC97Y20dvpobe9jZu3buysr60XUPzOm2+c/qDte5LILi5f6J987VT+9z93UXIJ5mremBlgBoPBDJ0Gz0xZP7N50d78AIaCwqFDj+HOH7/j6g9XNot+f+XWzZ/fOnfuXDmIQJ6q4LLIiagOHloCrOlbPZi5YK9ITNUT0nWss7qeGegXffy29iueWXgWIHSvXb/2+vzRuS4znyQiX42BqSQBRECL53Z0h84a2ZTsA9LPiQgg0rUEIoJSChsb/0JlGQ4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iYSACvw46Bt6LXq6nd2HA+j6CNAkxTpMNvtyN2ZAnA7+fF3CDF8Zf3LQCLa4WY5V+wfv0Zlf221f3S/KfG+7qXqSRYfdMQiZIhLc9trmYQOuMNqiYHqIdu9buZiaciGZLEdgnSTObOxoHnZlAJFLhgODqWOzlzcu8ggPt83EkzPga624bAlMApuXyEsiSkGQ8EmA7yVHwtVkPzJtx/38PGssMgC0AvSYCOYBJAA8ToWDmzN0i+ySqaBOC94lYC8sJAj4/N6ZSqgDQBVAC6Os0SkCh+p9wd3ur9+Pq6u3j8/MLNNrN2vjGzLi9+hP3er3rqAhsaoxJAiWAAsDm8mfLZ5n5vYnJiaMQ0aopIoxa12Dlbr9/Y+XS5bMafCnBA/HAOwVgWv+6ACZQyep+2DaAHQAbOl/zgZQ29qECnus290dDlUuUqKLPDiJR6H9v/wGbSgV/KKAx6gAAAABJRU5ErkJggg==" /><a href="custom-2.json">custom-2.json</a></td>
<td>19-Sep-2022 13:55</td>
<td>40 kB</td>
</tr><tr>
<td><p style="display: none">list.txt</p><img style="margin-right: 5px; max-width: 20px" src="data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2QcUFSoXYuvT6wAABdlJREFUaIHtWUtvHTUU/o5nmse9AVoF9cFDJAFKA1J3LCv4AWxYgErFphX8AdZddItYkRULQEItFYlaNuxBSEhI0KJWYlG1qEFAIgoFFiRNbm5mDovx49hjz517b6QKqUe6sT22x99nf+fY4wAP7IGNZZSqOH/5/JFJVp/vFuWLALLqKQPs2rDXY5Q6BhHtkFK/oMQXxL13T516+86eEFi5dPGrEydefunwwcPU0GxkK4oC97Y20dvpobe9jZu3buysr60XUPzOm2+c/qDte5LILi5f6J987VT+9z93UXIJ5mremBlgBoPBDJ0Gz0xZP7N50d78AIaCwqFDj+HOH7/j6g9XNot+f+XWzZ/fOnfuXDmIQJ6q4LLIiagOHloCrOlbPZi5YK9IT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E+LJPi2JIYg4L58UF0iDO7V7jgtNzMKUgk+RSK2dxiQ5onOVNGo2tLMGONLqEZEpBK0AO8DT+wdjgeqb26qwOv+4aXyUARiYSACvw46Bt6LXq6nd2HA+j6CNAkxTpMNvtyN2ZAnA7+fF3CDF8Zf3LQCLa4WY5V+wfv0Zlf221f3S/KfG+7qXqSRYfdMQiZIhLc9trmYQOuMNqiYHqIdu9buZiaciGZLEdgnSTObOxoHnZlAJFLhgODqWOzlzcu8ggPt83EkzPga624bAlMApuXyEsiSkGQ8EmA7yVHwtVkPzJtx/38PGssMgC0AvSYCOYBJAA8ToWDmzN0i+ySqaBOC94lYC8sJAj4/N6ZSqgDQBVAC6Os0SkCh+p9wd3ur9+Pq6u3j8/MLNNrN2vjGzLi9+hP3er3rqAhsaoxJAiWAAsDm8mfLZ5n5vYnJiaMQ0aopIoxa12Dlbr9/Y+XS5bMafCnBA/HAOwVgWv+6ACZQyep+2DaAHQAbOl/zgZQ29qECnus290dDlUuUqKLPDiJR6H9v/wGbSgV/KKAx6gAAAABJRU5ErkJggg==" /><a href="list.txt">list.txt</a></td>
<td>21-Sep-2022 09:53</td>
<td>0 kB</td>
</tr>
</table>
<hr>
Expand Down
2 changes: 2 additions & 0 deletions ideogram/database/bands/list.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
custom-1,yeast
custom-2,human
4 changes: 2 additions & 2 deletions ideogram/database/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<html>
<head>
<title>Index of /</title>
<title>Index of /database</title>
<style>
* {
font-family: sans-serif;
Expand Down Expand Up @@ -29,7 +29,7 @@ <h1>Index of /database</h1>
<td>-</td>
</tr><tr>
<td><p style="display: none">bands</p><img style="margin-right: 5px; max-width: 20px" src="data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2wQECAEI1xyfEAAABF1JREFUaIHtmM1vVFUYh59zO3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OUvFH+MQKaG1wzmXOQkrF73eigKWzetYsFAQdVsAY03IuzxIdVUCw1saOslkg6LQHjLHLzwWZotMesNbgHzCypSBFD1icI3OrUNKb0MR9wLl1e43zVARBCguJs5mrgFqpQB7QEBewDcA626xWxgSs9MAOoAzoVgF54DkAZ5cesv/bBJ9Ey068A6gDs60CeoHtIqKcCFlchVrOQtuBZ4Bqq4AQKALNjSyD+8BKPiFQAILHe8C/bnKOIAhWNXHSSXADWT4mtApoAItAdPnKtcLLr7xATmWoBEoxdeNP8mHO4f1fB0yrgBrwYHp65quz53754uw51n4htEGoIJDZu/dOAdXmxz7uiz78SrQdsiegSR2f/F0SBIBvkF6yKyDCuyWbx4VNNtkkHf8Al2k6f7TD2+wAAAAASUVORK5CYII=" /><a href="bands">bands</a></td>
<td>19-Sep-2022 15:40</td>
<td>21-Sep-2022 09:53</td>
<td>-</td>
</tr>

Expand Down
3 changes: 2 additions & 1 deletion ideogram/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
dash
dash_bio
dash_bio
bs4
26 changes: 26 additions & 0 deletions ideogram/run_me_before_commit.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash

list=`cat database/bands/list.txt | awk -F, '{print $1}'`
files=`ls database/bands/custom*.json | tr '/' ' ' | tr '.' ' ' | awk '{print $3}'`

for i in `echo $files`
do
list=`echo $list | tr ' ' '\n' | grep -v $i | tr '\n' ' '`
done

for i in `echo $list`
do
cat database/bands/list.txt | grep -v $i > database/bands/tmp
mv database/bands/tmp database/bands/list.txt
done

n=`ls database/bands/custom*.json | tr '-' ' ' | tr '.' ' ' | awk '{print $2}' | sort -n | tail -1`

for i in `ls database/bands/*.json | grep -v "custom" | tr '/' ' ' | tr '.' ' ' | awk '{print $3}'`
do
let "n=$n+1"
echo "custom-"$n","$i >> database/bands/list.txt
mv database/bands/$i.json database/bands/"custom-"$n".json"
done

python3 ./.apindex/apindex.py ./database

0 comments on commit 5461058

Please sign in to comment.