Skip to content

Instantly share code, notes, and snippets.

@mr-eyes
Last active April 20, 2021 16:23
Show Gist options
  • Save mr-eyes/c699fb640015bdabf4d445f4443e06c5 to your computer and use it in GitHub Desktop.
Save mr-eyes/c699fb640015bdabf4d445f4443e06c5 to your computer and use it in GitHub Desktop.
kSpider 2 DBRetina test
parent metadata
p1 DB_A
p2 DB_B
p3 DB_C
p4 DB_A
p5 DB_A
p6 DB_A
p7 DB_B
p8 DB_C
p9 DB_C
p1 p1
p2 p2
p3 p3
p4 p4
p5 p5
p6 p6
p7 p7
p8 p8
p9 p9
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "alert-vinyl",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"ID\tseq1\tseq2\tshared_kmers\n",
"1\t7\t2\t1\n",
"2\t6\t1\t1\n",
"3\t8\t3\t1\n",
"4\t5\t1\t1\n",
"5\t6\t4\t1\n",
"6\t5\t4\t1\n",
"7\t6\t5\t1\n",
"8\t9\t3\t1\n",
"9\t9\t8\t1\n",
"10\t4\t1\t1\n"
]
}
],
"source": [
"%%bash\n",
"DBRetina items_indexing -i annotations.txt -n names.tsv -p tmp\n",
"DBRetina pairwise -i tmp\n",
"cat tmp_kSpider_pairwise.tsv"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "lyric-opening",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"ID\tseq1\tseq2\tshared_kmers\n",
"1\t7\t2\t1\n",
"2\t6\t1\t1\n",
"3\t8\t3\t1\n",
"4\t5\t1\t1\n",
"5\t6\t4\t1\n",
"6\t5\t4\t1\n",
"7\t6\t5\t1\n",
"8\t9\t3\t1\n",
"9\t9\t8\t1\n",
"10\t4\t1\t1\n"
]
}
],
"source": [
"%%bash\n",
"cat tmp_kSpider_pairwise.tsv"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.2"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment