write does not automatically append newlines
|
|
- Rodney Higgins
- 5 years ago
- Views:
Transcription
1 Using! to tell IPython to run a shell command (in this case, I m listing the files in my working directory )!ls arraytools.py Clustering Example.ipynb clustertools.pyc Day 4.ipynb rowshuffle1.jtv rowshuffle1.um.jtv SimpleCdt.pyc supp2data.csv arraytools.pyc clustertools.py day2.txt ipython.html rowshuffle1.um.cdt SimpleCdt.py stats.py test1.cdt BMS270a ipynb clustertools.py~ day3.log rowshuffle1.cdt rowshuffle1.um.gtr SimpleCdt.py~ stats.pyc test1.jtv Parse supp2data.csv using the parser function from yesterday from clustertools import parsecsv (columns, genes, annos, logratios) = parsecsv("supp2data.csv") Retroactively starting my log %logstart -o /home/mvoorhie/projects/courses/practicalbioinformatics/python/april2013/ day4.log Activating auto-logging. Current session state plus future input saved. Filename : /home/mvoorhie/projects/courses/practicalbioinformatics/python/april2013/day4.log Mode : backup Output logging : True Raw input log : False Timestamping : False State : active Sanity check: do my arrays have the expected shape? [len(i) for i in (genes,annos,logratios)] [2467, 2467, 2467] 79 len(logratios[0])
2 -rw-rw-r-- 1 mvoorhie mvoorhie May 2 13:10 rowshuffle1.um.gtr -rw-rw-r-- 1 mvoorhie mvoorhie May 2 13:10 rowshuffle1.um.cdt -rw-rw-r-- 1 mvoorhie mvoorhie 787 May 2 13:11 rowshuffle1.um.jtv -rw-rw-r-- 1 mvoorhie mvoorhie 2464 May 2 15:07 Clustering Example.ipynb -rw-rw-r-- 1 mvoorhie mvoorhie 2451 May 2 15:08 Day 4.ipynb -rw-rw-r-- 1 mvoorhie mvoorhie 0 May 2 15:22 test.cdt -rw-rw-r-- 1 mvoorhie mvoorhie 596 May 2 15:23 day4.log fp2 = open("test1.jtv","w")!ls -lrt tail -rw-rw-r-- 1 mvoorhie mvoorhie May 2 13:09 rowshuffle1.cdt -rw-rw-r-- 1 mvoorhie mvoorhie 717 May 2 13:09 rowshuffle1.jtv -rw-rw-r-- 1 mvoorhie mvoorhie May 2 13:10 rowshuffle1.um.gtr -rw-rw-r-- 1 mvoorhie mvoorhie May 2 13:10 rowshuffle1.um.cdt -rw-rw-r-- 1 mvoorhie mvoorhie 787 May 2 13:11 rowshuffle1.um.jtv -rw-rw-r-- 1 mvoorhie mvoorhie 2464 May 2 15:07 Clustering Example.ipynb -rw-rw-r-- 1 mvoorhie mvoorhie 2451 May 2 15:08 Day 4.ipynb -rw-rw-r-- 1 mvoorhie mvoorhie 0 May 2 15:22 test.cdt -rw-rw-r-- 1 mvoorhie mvoorhie 0 May 2 15:27 test1.jtv -rw-rw-r-- 1 mvoorhie mvoorhie 664 May 2 15:27 day4.log write does not automatically append newlines fp.write("this is the first line") fp.write("this is the second line") fp.close() fp = open("test.cdt") fp.readline() this is the first linethis is the second line fp.close() fp = open("test.cdt","w") fp.write("this is the first line\n") fp.write("this is the second line\n") fp.close() fp = open("test.cdt") fp.readline() this is the first line\n 2
3 Digression: making function parameters optional by giving them default values def f(x, y = 2): print x, y f(3) 3 2 f(4, 5) 4 5 def f(x, y =2,z=3): print x,y,z f(3) f(2,4) f(2, z = 66) def f(x, *args, **kw): print x print kw["z"] f(3, z = 17) 3 17 Back to figuring out how to format my arrays for output genes[:10] [ YBR166C, YOR357C, YLR292C, YGL112C, YIL118W, YDL120W, YHL025W, YGL248W, YIL146C, 3
4 YJR106W ] ",".join(genes[:10]) YBR166C,YOR357C,YLR292C,YGL112C,YIL118W,YDL120W,YHL025W,YGL248W,YIL146C,YJR106W "asdfasdf".join(genes[:10]) YBR166CasdfasdfYOR357CasdfasdfYLR292CasdfasdfYGL112CasdfasdfYIL118WasdfasdfYDL120WasdfasdfYHL025Wasdfas "\t".join(genes[:10]) YBR166C\tYOR357C\tYLR292C\tYGL112C\tYIL118W\tYDL120W\tYHL025W\tYGL248W\tYIL146C\tYJR106W print "\t".join(genes[:10]) YBR166C YOR357C YLR292C YGL112C YIL118W YDL120W YHL025W YGL248W YIL146C YJR106W "\t".join(logratios[0][:10]) TypeError Traceback (most recent call last) <ipython-input-37-e3d72ab96daf> in <module>() ----> 1 "\t".join(logratios[0][:10]) TypeError: sequence item 0: expected string, float found str(3.5) 3.5 p = pi p = str(p) Mad-libbing strings (string substitution) "%s" % p
5 "The %s dog jumped over the %s fox" % ("quick","lazy") The quick dog jumped over the lazy fox "The %s dog jumped over the %s fox" % (p,"lazy") The dog jumped over the lazy fox "The %.3f dog jumped over the %s fox" % (p,"lazy") The dog jumped over the lazy fox "The %e dog jumped over the %s fox" % (p,"lazy") The e+00 dog jumped over the lazy fox fp = open("test.cdt","w") fp.write("\t".join(["uniqid","name"]+[str(i) for i in range(79)])+"\n") x = "asdfasdf" x += "asdfasdf" x asdfasdfasdfasdf "asdfasdf"+"asdfasdf" asdfasdfasdfasdf Lists vs. list comprehensions vs. generator expressions # simple list [1,2,3,] [1, 2, 3] # list comprehension [i**2 for i in range(10)] [0, 1, 4, 9, 16, 25, 36, 49, 64, 81] ",".join(["2343","2342"]) 5
6 2343,2342 ",".join(["2343","2342"]+["hi" for i in range(5)]) 2343,2342,hi,hi,hi,hi,hi # generator expression x = (i**2 for i in range(10)) x <generator object <genexpr> at 0x428daa0> 0 x.next() 1 x.next() for i in x: print i A working version of the output function that we were working on today (see SimpleCdt.py on the website for a different version) def pretty(f): if(f is None): return "" else: return str(f) def writecdt(genes, annos, logratios, fname): fp = open(fname,"w") fp.write("\t".join(["uniqid","name"]+[str(i) for i in xrange(len(logratios[0]))])+"\n ") for (gene, anno, ratio) in zip(genes, annos, logratios): fp.write("\t".join([gene,anno]+[pretty(i) for i in ratio])+"\n") 6
7 fp.close() writecdt(genes, annos, logratios, "test1.cdt") str(none) None Here I m launching javatreeview with a convenience script you can start JavaTreeView from the Start menu on windows or the Applications folder on OS X!javatreeview.sh test1.cdt created xml config from file /home/mvoorhie/.javatreeviewxmlrc Plugin Jar jar:file:/home/mvoorhie/cpackages/javatreeview/alok-git/jtreeview/linkedview/dist/plugins/den Registering Plugin Dendrogram Registering Plugin Alignment Registering Plugin KnnDendrogram Plugin Jar jar:file:/home/mvoorhie/cpackages/javatreeview/alok-git/jtreeview/linkedview/dist/plugins/kar Registering Plugin Karyoscope Plugin Jar jar:file:/home/mvoorhie/cpackages/javatreeview/alok-git/jtreeview/linkedview/dist/plugins/tre Registering Plugin ArrayTreeAnno Registering Plugin GeneTreeAnno Plugin Jar jar:file:/home/mvoorhie/cpackages/javatreeview/alok-git/jtreeview/linkedview/dist/plugins/sca Registering Plugin Scatterplot loading /home/mvoorhie/projects/courses/practicalbioinformatics/python/april2013/test1.cdt... Finding Cdt Dimensions loading Array Annotations loading Gene Annotations Parsing strings into doubles... parsing jtv config file created xml config from file /home/mvoorhie/projects/courses/practicalbioinformatics/python/april2013/te final style classic showing popup... Successfully stored config file /home/mvoorhie/projects/courses/practicalbioinformatics/python/april2013 Successfully stored config file /home/mvoorhie/projects/courses/practicalbioinformatics/python/april2013 Successfully stored config file /home/mvoorhie/projects/courses/practicalbioinformatics/python/april2013 Successfully stored config file /home/mvoorhie/.javatreeviewxmlrc Successfully stored config file /home/mvoorhie/projects/courses/practicalbioinformatics/python/april2013 ViewFrame.dispose 7
8
Practical Bioinformatics
4/25/2017 Mean def mean ( x ) : s = 0. 0 f o r i i n x : s += i return s / len ( x ) def mean ( x ) : return sum( x )/ f l o a t ( len ( x ) ) Standard Deviation σ x = N i (x i x) 2 N 1 Standard Deviation
More informationSTATS Data Analysis using Python. Lecture 8: Hadoop and the mrjob package Some slides adapted from C. Budak
STATS 700-002 Data Analysis using Python Lecture 8: Hadoop and the mrjob package Some slides adapted from C. Budak Recap Previous lecture: Hadoop/MapReduce framework in general Today s lecture: actually
More informationPractical Bioinformatics
5/12/2015 Gotchas Strings are quoted, names of things are not. mystring = mystring Gotchas Strings are quoted, names of things are not. mystring = mystring Case matters for variable names: mystring MyString
More informationJava TreeView Programmer's Guide. Alok Saldanha
Java TreeView Programmer's Guide Alok Saldanha Java TreeView Programmer's Guide Alok Saldanha Table of Contents Preface... iv 1. Getting Started... 1 Required Tools... 1 TreeView Source Code... 1 Java
More informationIT 341: Introduction to System Administration Using sed
IT 341: Introduction to System Administration Using sed Maintaining Configuration Files The sed Stream Editor Instructions to sed o Replacing a String with sed o Adding a Line with sed o Deleting a Line
More informationThis module contains three plugins: Decouple.pl, Add.pl and Delete.pl.
NeoChr NeoChr is used to construct new chromosome denovo. It would assist users to grab related genes in different pathways of various organism manually, to rewire genes relationship logically*, and to
More informationLinking Thesauri and Glossaries Case Study 0: linking a fake resource Roberto Navigli
Linking Thesauri and Glossaries Case Study 0: linking a fake resource http://lcl.uniroma1.it The Luxembourg BabelNet Workshop Session 6 Session 6 The Luxembourg BabelNet Workshop [11:00-12:15, 3 March,
More informationLecture 4. Defining Functions
Lecture 4 Defining Functions Academic Integrity Quiz Reading quiz about the course AI policy Go to http://www.cs.cornell.edu/courses/cs11110/ Click Academic Integrity in side bar Read and take quiz in
More informationNot-So-Mini-Lecture 6. Modules & Scripts
Not-So-Mini-Lecture 6 Modules & Scripts Interactive Shell vs. Modules Launch in command line Type each line separately Python executes as you type Write in a code editor We use Atom Editor But anything
More information1 Strings (Review) CS151: Problem Solving and Programming
1 Strings (Review) Strings are a collection of characters. quotes. this is a string "this is also a string" In python, strings can be delineated by either single or double If you use one type of quote
More information5 File I/O, Plotting with Matplotlib
5 File I/O, Plotting with Matplotlib Bálint Aradi Course: Scientific Programming / Wissenchaftliches Programmieren (Python) Installing some SciPy stack components We will need several Scipy components
More informationBasic Concepts. Computer Science. Programming history Algorithms Pseudo code. Computer - Science Andrew Case 2
Basic Concepts Computer Science Computer - Science - Programming history Algorithms Pseudo code 2013 Andrew Case 2 Basic Concepts Computer Science Computer a machine for performing calculations Science
More informationNetOps Coding 101 building your first robot!
NetOps Coding 101 building your first robot! NANOG 66 david swafford 02.09.2016 what we ll accomplish 2 automating 3 the remediation of network faults 4 using the examples of link flaps & line card failures
More informationLECTURE 4 Python Basics Part 3
LECTURE 4 Python Basics Part 3 INPUT We ve already seen two useful functions for grabbing input from a user: raw_input() Asks the user for a string of input, and returns the string. If you provide an argument,
More informationInteractive use. $ python. >>> print 'Hello, world!' Hello, world! >>> 3 $ Ctrl-D
1/60 Interactive use $ python Python 2.7.5 (default, Mar 9 2014, 22:15:05) [GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin Type "help", "copyright", "credits" or "license" for more information.
More informationFILE HANDLING AND EXCEPTIONS
FILE HANDLING AND EXCEPTIONS INPUT We ve already seen how to use the input function for grabbing input from a user: input() >>> print(input('what is your name? ')) What is your name? Spongebob Spongebob
More informationNETCONF Client GUI. Client Application Files APPENDIX
APPENDIX B The NETCONF client is a simple GUI client application that can be used to understand the implementation of the NETCONF protocol in Cisco E-DI. This appendix includes the following information:
More informationProgramming with Python
Programming with Python Lecture 3: Python Functions IPEC Winter School 2015 B-IT Dr. Tiansi Dong & Dr. Joachim Köhler Python Functions arguments return obj Global vars Files/streams Function Global vars
More informationBuilding Powerful Workflow Automation with Cherwell and PowerShell
Building Powerful Workflow Automation with Cherwell and PowerShell Agenda Welcome & Session Introduction What is PowerShell? PowerShell ISE Commands/Cmd-Lets Operators Variables Flow Control LAB 1 Exploring
More informationOperating System Interaction via bash
Operating System Interaction via bash bash, or the Bourne-Again Shell, is a popular operating system shell that is used by many platforms bash uses the command line interaction style generally accepted
More informationCPL 2016, week 10. Clojure functional core. Oleg Batrashev. April 11, Institute of Computer Science, Tartu, Estonia
CPL 2016, week 10 Clojure functional core Oleg Batrashev Institute of Computer Science, Tartu, Estonia April 11, 2016 Overview Today Clojure language core Next weeks Immutable data structures Clojure simple
More informationInteractive use. $ python. >>> print 'Hello, world!' Hello, world! >>> 3 $ Ctrl-D
1/58 Interactive use $ python Python 2.7.5 (default, Mar 9 2014, 22:15:05) [GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin Type "help", "copyright", "credits" or "license" for more information.
More informationStrings and Testing string methods, formatting testing approaches CS GMU
Strings and Testing string methods, formatting testing approaches CS 112 @ GMU Topics string methods string formatting testing, unit testing 2 Some String Methods (See LIB 4.7.1) usage: stringexpr. methodname
More informationMEIN 50010: Python Strings
: Python Strings Fabian Sievers Higgins Lab, Conway Institute University College Dublin Wednesday, 2017-10-25 Lecture Basic string manipulation Converting between different variable types strings Command-line
More informationArrays. Collection of data elements that are of same type
Arrays Collection of data elements that are of same type 31 One or more dimensions, up to 2 elements per dimension Elements accessed by their index First element is index 0 index 10-element array 0 1 2
More informationPython Working with files. May 4, 2017
Python Working with files May 4, 2017 So far, everything we have done in Python was using in-memory operations. After closing the Python interpreter or after the script was done, all our input and output
More informationUsing Python for shell scripts
Using Python for shell scripts January 2018 1/29 Using Python for shell scripts Peter Hill Outline Using Python for shell scripts January 2018 2/29 Advantages/disadvantages of Python Running a parameter
More informationCST Algonquin College 2
The Shell Kernel (briefly) Shell What happens when you hit [ENTER]? Output redirection and pipes Noclobber (not a typo) Shell prompts Aliases Filespecs History Displaying file contents CST8207 - Algonquin
More informationLab: Using Graphs for Comparing Transcriptome and Interactome Data
Lab: Using Graphs for Comparing Transcriptome and Interactome Data S. Falcon, W. Huber, R. Gentleman June 23, 2006 1 Introduction In this lab we will use the graph, Rgraphviz, and RBGL Bioconductor packages
More informationGIS 4653/5653: Spatial Programming and GIS. More Python: Statements, Types, Functions, Modules, Classes
GIS 4653/5653: Spatial Programming and GIS More Python: Statements, Types, Functions, Modules, Classes Statement Syntax The if-elif-else statement Indentation and and colons are important Parentheses and
More informationPython. Karin Lagesen.
Python Karin Lagesen karin.lagesen@bio.uio.no Plan for the day Basic data types data manipulation Flow control and file handling Functions Biopython package What is programming? Programming: ordered set
More informationAssignment clarifications
Assignment clarifications How many errors to print? at most 1 per token. Interpretation of white space in { } treat as a valid extension, involving white space characters. Assignment FAQs have been updated.
More informationPython language: Basics
Python language: Basics The FOSSEE Group Department of Aerospace Engineering IIT Bombay Mumbai, India FOSSEE Team (FOSSEE IITB) Basic Python 1 / 45 Outline 1 Data types Numbers Booleans Strings 2 Operators
More informationUsing the UEFI Shell. October 2010 UEFI Taipei Plugfest Insyde Software
Using the UEFI Shell October 2010 UEFI Taipei Plugfest 1 San Francisco Cable Car 2 Agenda Insyde UEFI Support UEFI Shell 2.0 What is it? UEFI Shell 2.0 Unique Features Network Browsing Example Application
More informationLecture 3: Functions & Modules
http://www.cs.cornell.edu/courses/cs1110/2018sp Lecture 3: Functions & Modules (Sections 3.1-3.3) CS 1110 Introduction to Computing Using Python [E. Andersen, A. Bracy, D. Gries, L. Lee, S. Marschner,
More information8 MANAGING SHARED FOLDERS & DATA
MANAGING SHARED FOLDERS & DATA STORAGE.1 Introduction to Windows XP File Structure.1.1 File.1.2 Folder.1.3 Drives.2 Windows XP files and folders Sharing.2.1 Simple File Sharing.2.2 Levels of access to
More informationPackage corenlp. June 3, 2015
Type Package Title Wrappers Around Stanford CoreNLP Tools Version 0.4-1 Author Taylor Arnold, Lauren Tilton Package corenlp June 3, 2015 Maintainer Taylor Arnold Provides a minimal
More informationComputational Programming with Python
Numerical Analysis, Lund University, 2017 1 Computational Programming with Python Lecture 1: First steps - A bit of everything. Numerical Analysis, Lund University Lecturer: Claus Führer, Alexandros Sopasakis
More informationLecture 3: Functions & Modules (Sections ) CS 1110 Introduction to Computing Using Python
http://www.cs.cornell.edu/courses/cs1110/2019sp Lecture 3: Functions & Modules (Sections 3.1-3.3) CS 1110 Introduction to Computing Using Python [E. Andersen, A. Bracy, D. Gries, L. Lee, S. Marschner,
More informationSTSCI Python Introduction. Class URL
STSCI Python Introduction Class 2 Jim Hare Class URL www.pst.stsci.edu/~hare Each Class Presentation Homework suggestions Example files to download Links to sites by each class and in general I will try
More informationMAVEN MOCK TEST MAVEN MOCK TEST I
http://www.tutorialspoint.com MAVEN MOCK TEST Copyright tutorialspoint.com This section presents you various set of Mock Tests related to Maven. You can download these sample mock tests at your local machine
More informationBioinformatics? Reads, assembly, annotation, comparative genomics and a bit of phylogeny.
Bioinformatics? Reads, assembly, annotation, comparative genomics and a bit of phylogeny stefano.gaiarsa@unimi.it Linux and the command line PART 1 Survival kit for the bash environment Purpose of the
More informationComputer Components. Software{ User Programs. Operating System. Hardware
Computer Components Software{ User Programs Operating System Hardware What are Programs? Programs provide instructions for computers Similar to giving directions to a person who is trying to get from point
More informationMEIN 50010: Python Flow Control
: Python Fabian Sievers Higgins Lab, Conway Institute University College Dublin Wednesday, 2017-10-11 Program Overview Program Code Block Statements Expressions Expressions & Statements An expression has
More informationLecture 3. Functions & Modules
Lecture 3 Functions & Modules Labs this Week Lab 1 is due at the beginning of your lab If it is not yet by then, you cannot get credit Only exception is for students who added late (Those students should
More informationLink-OS & Printer Portfolio Overview
Link-OS & Printer Portfolio Overview Bret Anno Manager, Software Engineering Leo Lowy Director, Software Link-OS OS API Apps Profile Manager Virtual Devices Cloud Connect Print Touch Developer Tools Print
More informationVery large searches present a number of challenges. These are the topics we will cover during this presentation.
1 Very large searches present a number of challenges. These are the topics we will cover during this presentation. 2 The smartest way to merge files, like fractions from a MudPIT run, is using Mascot Daemon.
More informationBatchDO 2.1 README 04/20/2012
BatchDO 2.1 README 04/20/2012 This README details the BatchDO 2.1 plugin which automates the workflow for the creation and updating of digital objects, and transfers barcodes placed in the "Instance Type"
More informationCS61B Lecture #2. Public Service Announcements:
CS61B Lecture #2 Please make sure you have obtained an account, run register, and finished the survey today. In the future (next week), the password required for surveys and such will be your account password
More informationTASH (Tcl Ada SHell) An Ada binding to to Tcl/Tk
TASH (Tcl Ada SHell) An Ada binding to to Tcl/Tk November, 2000 Terry Westley http://www.adatcl.com Tutorial Outline 4Introduction to Tcl/Tk and TASH Scripting in Ada with TASH GUI programming in Ada with
More informationsottotitolo A.A. 2016/17 Federico Reghenzani, Alessandro Barenghi
Titolo presentazione Piattaforme Software per la Rete sottotitolo BASH Scripting Milano, XX mese 20XX A.A. 2016/17, Alessandro Barenghi Outline 1) Introduction to BASH 2) Helper commands 3) Control Flow
More informationBash command shell language interpreter
Principles of Programming Languages Bash command shell language interpreter Advanced seminar topic Louis Sugy & Baptiste Thémine Presentation on December 8th, 2017 Table of contents I. General information
More informationPython Development with PyDev and Eclipse -
1 of 11 4/4/2013 9:41 PM 130 Free tutorial, donate to support Python Development with PyDev and Eclipse - Tutorial Lars Vogel Version 1.8 Copyright 2009, 2010, 2011, 2012 Lars Vogel 01.07.2012 Revision
More informationProgramming Paradigms and Languages Introduction to Haskell. dr Robert Kowalczyk WMiI UŁ
Programming Paradigms and Languages Introduction to Haskell dr Robert Kowalczyk WMiI UŁ Functional programming In functional programming (special type of declarative programming), programs are executed
More informationBAT-Framework v0.1: A Quick Reference
BAT-Framework v0.1: A Quick Reference Marco Cornolti - A 3 Lab - University of Pisa January 30, 2013 1 FAQ Before reading the rest, have a look at these answers. What does this framework provide? A: An
More informationAlgorithms and Data Structures
Algorithms and Data Structures IPython Łódź 2012 IPython ipython.org IPython Mac OS PyLab Interac
More informationA Little Python Part 1. Introducing Programming with Python
A Little Python Part 1 Introducing Programming with Python Preface Not a complete course in a programming language Many details can t be covered Need to learn as you go My programming style is not considered
More informationAlgorithms for Bounded-Error Correlation of High Dimensional Data in Microarray Experiments
Algorithms for Bounded-Error Correlation of High Dimensional Data in Microarray Experiments Mehmet Koyutürk, Ananth Grama, and Wojciech Szpankowski Department of Computer Sciences, Purdue University West
More information1 RPN (Danny Yoo / Donovan Preston)
1 RPN (Danny Yoo / Donovan Preston) This code implements a reverse polish notation calculator. It s deliberately written in a slightly weird way to avoid being taken used as a homework answer. 1 """ RPN
More informationCh.2: Loops and lists
Ch.2: Loops and lists Joakim Sundnes 1,2 Hans Petter Langtangen 1,2 Simula Research Laboratory 1 University of Oslo, Dept. of Informatics 2 Aug 29, 2018 Plan for 28 August Short quiz on topics from last
More informationThe Shell. EOAS Software Carpentry Workshop. September 20th, 2016
The Shell EOAS Software Carpentry Workshop September 20th, 2016 Getting Started You need to download some files to follow this lesson. These files are found on the shell lesson website (see etherpad) 1.
More informationruntest Documentation
runtest Documentation Release 2.1.1-rc-1 Radovan Bast Feb 07, 2018 About 1 Motivation 3 2 Audience 5 3 Similar projects 7 4 General tips 9 5 How to hook up runtest with your code 11 6 Example test script
More informationLevel 3 Computing Year 2 Lecturer: Phil Smith
Level 3 Computing Year 2 Lecturer: Phil Smith We looked at: Previously Reading and writing files. BTEC Level 3 Year 2 Unit 16 Procedural programming Now Now we will look at: Appending data to existing
More informationCisco IOS Shell. Finding Feature Information. Prerequisites for Cisco IOS.sh. Last Updated: December 14, 2012
Cisco IOS Shell Last Updated: December 14, 2012 The Cisco IOS Shell (IOS.sh) feature provides shell scripting capability to the Cisco IOS command-lineinterface (CLI) environment. Cisco IOS.sh enhances
More informationArgparse Tutorial Release 2.7.9
Argparse Tutorial Release 2.7.9 Guido van Rossum and the Python development team December 10, 2014 Python Software Foundation Email: docs@python.org Contents 1 Concepts 1 2 The basics 2 3 Introducing Positional
More informationAutomating common tasks
Chapter 16 Automating common tasks One of the great advantages of the Python language is the ability to write programs that scan through your computer and perform some operation on each file.filesareorganized
More informationLoad KEGG Pathways. Browse and Load KEGG Pathways
Note: This is just partial of VisANT manual related with the NAR 2007 submission. Please visit http://visant.bu.edu for the full user manual. Load KEGG Pathways...1 Browse and Load KEGG Pathways...1 Load
More informationShell Programming (bash)
Shell Programming Shell Programming (bash) Commands run from a file in a subshell A great way to automate a repeated sequence of commands. File starts with #!/bin/bash absolute path to the shell program
More informationThe current topic: Python. Announcements. Python. Python
The current topic: Python Announcements! Introduction! reasons for studying languages! language classifications! simple syntax specification Object-oriented programming: Python Types and values Syntax
More informationRational Software Architect Real-Time Edition. RSARTE 10.1 Installation Instructions
Rational Software Architect Real-Time Edition RSARTE 10.1 Installation Instructions 1 Introduction... 3 2 Installing from Eclipse workbench... 4 2.1 Install...4 2.2 License Setup...8 2.2.1 Floating License...9
More informationWhen talking about how to launch commands and other things that is to be typed into the terminal, the following syntax is used:
Linux Tutorial How to read the examples When talking about how to launch commands and other things that is to be typed into the terminal, the following syntax is used: $ application file.txt
More informationFlipping Book Publisher for Image also provides different output methods for you to publish your
Note: This product is distributed on a try-before-you-buy basis. All features described in this documentation are enabled. The unregistered version will be added a demo watermark. About Flipping Book Publisher
More informationNbconvert Refactor Final 1.0
Nbconvert Refactor Final 1.0 Jonathan Frederic June 20, 2013 Part I Introduction IPython is an interactive Python computing environment[1]. It provides an enhanced interactive Python shell. The IPython
More informationHadoop Streaming. Table of contents. Content-Type text/html; utf-8
Content-Type text/html; utf-8 Table of contents 1 Hadoop Streaming...3 2 How Does Streaming Work... 3 3 Package Files With Job Submissions...4 4 Streaming Options and Usage...4 4.1 Mapper-Only Jobs...
More informationCh.4: User input and error handling
Ch.4: User input and error handling Ole Christian Lingjærde, Dept of Informatics, UiO 13 September 2017 Today s agenda Short recapitulation from last week Live-programming of exercises 2.19, 2.20, 2.21
More informationGMI-Cmd.exe Reference Manual GMI Command Utility General Management Interface Foundation
GMI-Cmd.exe Reference Manual GMI Command Utility General Management Interface Foundation http://www.gmi-foundation.org Program Description The "GMI-Cmd.exe" program is a standard part of the GMI program
More informationFlip Book Maker for Image Scan files into Page-flipping ebooks directly. User Documentation. About Flip Book Maker for Image. Detail features include:
Note: This product is distributed on a try-before-you-buy basis. All features described in this documentation are enabled. The unregistered version will be added a demo watermark. About Flip Book Maker
More informationLecture 3. Functions & Modules
Lecture 3 Functions & Modules Labs this Week Lab 1 is due at the beginning of your lab If it is not yet by then, you cannot get credit Only exception is for students who added late (Those students should
More informationPart IV. More on Python. Tobias Neckel: Scripting with Bash and Python Compact Max-Planck, February 16-26,
Part IV More on Python Compact Course @ Max-Planck, February 16-26, 2015 36 More on Strings Special string methods (excerpt) s = " Frodo and Sam and Bilbo " s. islower () s. isupper () s. startswith ("
More informationCS1110 Lab 1 (Jan 27-28, 2015)
CS1110 Lab 1 (Jan 27-28, 2015) First Name: Last Name: NetID: Completing this lab assignment is very important and you must have a CS 1110 course consultant tell CMS that you did the work. (Correctness
More informationPython for C programmers
Python for C programmers The basics of Python are fairly simple to learn, if you already know how another structured language (like C) works. So we will walk through these basics here. This is only intended
More informationIBM Tivoli Application Dependency Discovery Manager TADDM
IBM Tivoli Application Dependency Discovery Manager TADDM How to create Custom Template Sensor (CTS), through the example of WebSphere Server hash code generator INTRODUCTION What this White Paper contains:
More informationUnderstanding bash. Prof. Chris GauthierDickey COMP 2400, Fall 2008
Understanding bash Prof. Chris GauthierDickey COMP 2400, Fall 2008 How does bash start? It begins by reading your configuration files: If it s an interactive login-shell, first /etc/profile is executed,
More informationLab: Using Graphs for Comparing Transcriptome and Interactome Data
Lab: Using Graphs for Comparing Transcriptome and Interactome Data S. Falcon, W. Huber, R. Gentleman June 23, 2006 1 Introduction In this lab we will use the graph, Rgraphviz, and RBGL Bioconductor packages
More informationAlgorithms and Data Structures
Algorithms and Data Structures IPython Łódź 2012 IPython ipython.org M Kociński & A Materka, Algorithms & Data Structures, TUL IFE, Łódź 2012 2 IPython Mac OS M Kociński & A Materka, Algorithms & Data
More informationGetting Started Values, Expressions, and Statements CS GMU
Getting Started Values, Expressions, and Statements CS 112 @ GMU Topics where does code go? values and expressions variables and assignment 2 where does code go? we can use the interactive Python interpreter
More informationThis tutorial will guide you how to setup and run your own minecraft server on a Linux CentOS 6 in no time.
This tutorial will guide you how to setup and run your own minecraft server on a Linux CentOS 6 in no time. Running your own server lets you play together with your friends and family with your own set
More informationUNIX System Programming Lecture 3: BASH Programming
UNIX System Programming Outline Filesystems Redirection Shell Programming Reference BLP: Chapter 2 BFAQ: Bash FAQ BMAN: Bash man page BPRI: Bash Programming Introduction BABS: Advanced Bash Scripting Guide
More informationData Science Python. Anaconda. Python 3.x. Includes ALL major Python data science packages. Sci-kit learn. Pandas.
Data Science Python Anaconda Python 3.x Includes ALL major Python data science packages Sci-kit learn Pandas PlotPy Jupyter Notebooks www.anaconda.com Python - simple commands Python is an interactive
More informationCS Programming Languages: Python
CS 3101-1 - Programming Languages: Python Lecture 5: Exceptions / Daniel Bauer (bauer@cs.columbia.edu) October 08 2014 Daniel Bauer CS3101-1 Python - 05 - Exceptions / 1/35 Contents Exceptions Daniel Bauer
More informationINFORMATICA CORPORATION. XML Reporter For Informatica Power Center 1.0-beta. User Guide 28/06/2014
INFORMATICA CORPORATION XML Reporter For Informatica Power Center 1.0-beta User Guide By 28/06/2014 Name of Solution: XML Reporter For Informatica Power Center Business Requirement: Automates the process
More informationFile Input/Output. Learning Outcomes 10/8/2012. CMSC 201 Fall 2012 Instructor: John Park Lecture Section 01. Discussion Sections 02-08, 16, 17
CMSC 201 Fall 2012 Instructor: John Park Lecture Section 01 1 Discussion Sections 02-08, 16, 17 Adapted from slides by Sue Evans et al. 2 Learning Outcomes Become familiar with input and output (I/O) from
More informationThe Road to CCSv4. Status Update
The Road to CCSv4 Status Update Code Composer Studio v4 Summary What is it? Major upgrade to CCS Major architectural changes Based on Eclipse open source software framework New registration/licensing/updating
More informationShell and Utility Commands
Table of contents 1 Shell Commands... 2 2 Utility Commands...3 1. Shell Commands 1.1. fs Invokes any FsShell command from within a Pig script or the Grunt shell. 1.1.1. Syntax fs subcommand subcommand_parameters
More informationThe Luxembourg BabelNet Workshop
The Luxembourg BabelNet Workshop 2 March 2016: Session 3 Tech session Disambiguating text with Babelfy. The Babelfy API Claudio Delli Bovi Outline Multilingual disambiguation with Babelfy Using Babelfy
More informationpython 01 September 16, 2016
python 01 September 16, 2016 1 Introduction to Python adapted from Steve Phelps lectures - (http://sphelps.net) 2 Python is interpreted Python is an interpreted language (Java and C are not). In [1]: 7
More informationWorking With Unix. Scott A. Handley* September 15, *Adapted from UNIX introduction material created by Dr. Julian Catchen
Working With Unix Scott A. Handley* September 15, 2014 *Adapted from UNIX introduction material created by Dr. Julian Catchen What is UNIX? An operating system (OS) Designed to be multiuser and multitasking
More informationProgramming for Engineers in Python. Recitation 1
Programming for Engineers in Python Recitation 1 Plan Administration: Course site Homework submission guidelines Working environment Python: Variables Editor vs. shell Homework 0 Python Cont. Conditional
More information6 Redirection. Standard Input, Output, And Error. 6 Redirection
6 Redirection In this lesson we are going to unleash what may be the coolest feature of the command line. It's called I/O redirection. The I/O stands for input/output and with this facility you can redirect
More informationTopic 2: More Shell Skills
Topic 2: More Shell Skills Sub-topics: simple shell scripts (no ifs or loops yet) sub-shells quoting shell variables aliases bash initialization files I/O redirection & pipes text file formats 1 Reading
More information