File: callCat_RnaFile.py

package info (click to toggle)
giira 0.0.20140625-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 760 kB
  • ctags: 482
  • sloc: java: 8,578; python: 258; xml: 44; sh: 33; makefile: 14
file content (27 lines) | stat: -rw-r--r-- 530 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# -*- coding: utf-8 -*-
"""
Copyright (c) 2013,
Franziska Zickmann, 
ZickmannF@rki.de, Robert Koch-Institute, Berlin, Germany
Distributed under the GNU Lesser General Public License, version 3.0
"""
#!/usr/bin/env python
import os
import optparse

parser = optparse.OptionParser()

args = parser.parse_args()

fastqFiles = args[1][0]
output = args[1][1]

fileArr = fastqFiles.split("&&")

fileNames = ""

for file in fileArr:
	fileNames = "%s %s" % (fileNames,file)

syscall = "cat %s > %s" %(fileNames,output)
os.system(syscall)