From 80f9befe78bad888ad4970bf6b8614b6ce2a7223 Mon Sep 17 00:00:00 2001
From: Julien Cornut <julien.cornut@hesge.ch>
Date: Thu, 25 Feb 2016 08:09:01 +0100
Subject: [PATCH] Automatic Update

---
 ProcessFASTQ.ipynb | 31 ++++++++++++++++++++++++++++---
 1 file changed, 28 insertions(+), 3 deletions(-)

diff --git a/ProcessFASTQ.ipynb b/ProcessFASTQ.ipynb
index e780db5..b05f509 100644
--- a/ProcessFASTQ.ipynb
+++ b/ProcessFASTQ.ipynb
@@ -95,11 +95,35 @@
   },
   {
    "cell_type": "code",
-   "execution_count": null,
+   "execution_count": 74,
    "metadata": {
     "collapsed": false
    },
-   "outputs": [],
+   "outputs": [
+    {
+     "name": "stdout",
+     "output_type": "stream",
+     "text": [
+      "\n",
+      "Available files :\n",
+      "\n",
+      "Undetermined_lane7_pair1 \t\t Processsed\n",
+      "flowcell261_lane8_pair1_CAGATC \t\t Processsed\n",
+      "flowcell261_lane8_pair1_TGACCA \t\t Processsed\n",
+      "flowcell362_lane4_pair1_ACAGTG \t\t Processsed\n",
+      "flowcell362_lane4_pair1_ACTTGA \t\t Processsed\n",
+      "flowcell362_lane4_pair1_CAGATC \t\t Processsed\n",
+      "flowcell362_lane4_pair1_TGACCA \t\t Processsed\n",
+      "flowcell362_lane4_pair1_Undetermined \t\t Processsed\n",
+      "flowcell384_lane7_pair1_ACAGTG \t\t Processsed\n",
+      "flowcell384_lane7_pair1_ACTTGA \t\t Processsed\n",
+      "flowcell384_lane7_pair1_CAGATC \t\t Processsed\n",
+      "flowcell384_lane7_pair1_GATCAG \t\t Processsed\n",
+      "flowcell384_lane7_pair1_TGACCA \t\t Processsed\n",
+      "testing \t\t Processsed\n"
+     ]
+    }
+   ],
    "source": [
     "# This lib is needed to parse fastq easily\n",
     "from Bio import SeqIO\n",
@@ -136,7 +160,8 @@
     "fn = {n.split('.')[0] for n in listdir(\"0-Raws/\")}\n",
     "wn = {n.split('.')[0] for n in listdir(\"7-WIGs/\")}\n",
     "\n",
-    "lst = (n+\" \\t\\t Processsed\" if n in wn else n for n in sorted(fn))\n",
+    "lst = (n+\" \\t\\t Processsed\" \\\n",
+    "       if n+\".P.wig\" or n+\".M.wig\" in wn else n for n in sorted(fn))\n",
     "\n",
     "for l in lst:\n",
     "    print(l)\n",
-- 
GitLab