GithubHelp home page GithubHelp logo

en2hugo's Introduction

trgn_assignment3b

extract_phonenum.py

Usage

  • python3 extract_phonenum.py mytextfile.txt

Description

Extracts every phone numbers from a text file and print them as a list. Use regex re.findall(r'\(?0\d{2,3}[)-]?\d{7,8}').

  • #(? represents it could find phonenumber with or without Parenthese "(".
  • #0\d{2,3} represents Region number 0XX one to two times.
  • #[)-? represents it could or could not follow ")"," ","-" after Region number.
  • #\d{7,8} represents 7 or 8 digit number.

It could find phone number in format (0XX) 7 or 8 digit number,0XX- 7 or 8 digit number and 0XX 7 or 8 digit number.

Known issues

None

ensg2hugo.py

Usage

python3 ensg2hugo.py [-f][0-9] [file]

Description

  • Read the Homo_sapiens.GRCh37.75.gtf to create a dictionary.
  • Convert the Ensembl name to HUGO names in input file.
  • "-f[1-9]" means usc the No.n column , in this Unit test file , you should use -f2 to pick the second column.
  • git clone the test file expres.anal.csv。

Known Issues

If you want to do this conversion successfully, you should know the right column to use -f[n] and the f-paramter can not be missed.

Histogram.py

Usage

python3 histogram.py [-f][0-9] [file]

Description

  • Creates a histogram as a png from a csv file using the specified column in a tab delimited file.
  • "-f[n] means you should the nth column to draw this histogram.
  • The test file is "addresses.csv" and the histogram obtained is "histogram.png"

Know Issues

  • Need to install the python library matplotlib: pip install --user matplotlib
  • It is used to handle .csv files.

en2hugo's People

Contributors

margery0011 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.