Skip to content

This script changes Illumina file prefixes to the sample ids from the table.

Notifications You must be signed in to change notification settings

attrna/rename_files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

rename_files

prefix2id.py replaces Illumina prefixes (e.g., 1_S01_L001...) with sample ids (my_sample1_S01_L001...) in multiple files.

To do this, you need to specify a file with a table of numbers and names, and a directory containing files to be renamed. Additionally, you can specify the Illumina lane number.

There are 2 columns (number and sample_id) in the table separated by tab:

1 my_sample1

2 my_sample2 ...

Also, it transforms spaces and brackets in sample_ids to underscore.

About

This script changes Illumina file prefixes to the sample ids from the table.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages