Renaming DNA Sequencing Files

2015-01-13

azim58 - Renaming DNA Sequencing Files


Here is a process that can be used to rename DNA sequencing files.

Copy original files into a new folder that will contain renamed files.
From the command line navigate to the directory containing the sequencing
files.

ex
C:\Documents and Settings\kwhittem>cd C:\Documents and
Settings\kwhittem\Desktop
\temp\pcomb fusion sequencing check 1-23-13\original sequencing files

list the files in the directory
C:\Documents and Settings\kwhittem\Desktop\temp\pcomb fusion sequencing
check 1-
23-13\original sequencing files>dir


Copy the directory names and paste them into excel
Split the text up into columns (Data->Text to columns->separate by space
and tab as necessary)
Delete unnecessary rows and columns. Make a column with original names
and a new column of new names.
Add a column that "ren" (without the quotes) at every row for the windows
cmd prompt rename command. Copy and paste everything into notepad.
Replace the tabs with spaces. Paste all of the rename commands in the
command prompt. Now all of the files should be renamed.