Giter VIP home page Giter VIP logo

helpers's Introduction

Summary of contents

This repository holds my helper functions, which are various functions or short scripts I write to help me with general tasks. I try to keep them generic. In fact, some of these originated as very specific scripts that I have stripped down because I a) had time to do so, and b) saw their potential future usefulness.

I will try to keep them well-commented and complete, but do note that this repository is more an attempt to preserve my own sanity and less an attempt at trying to make useful things for others.

Brief description of scripts and files

make_directories.py This script organizes files into directories. I wrote it to accommodate a tool that requires fastq files to be arranged in separate directories with the same sample ID as the fastq file. It identifies the files from a user-provided keyword (e.g. 'fastq') and creates directories with the names of those files (n directories for n files). Then it moves each file(s) into the corresponding directory.

undo_make_directories.py Anticipating the need to undo the action described above, should the tool not work, I also wrote this script which sort-of does the reverse. It identifies a list of directories based on a keyword (e.g. 'IlluminaRun3'), moves all the files out of those directories, and then optionally deletes the empty directories, moves all the files out of those directories, and then (optionally) deletes the empty directories.

my_modules.py Contains useful functions I've written and use in many of my scripts.

helpers's People

Contributors

jessicarowell 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.