public class CreateCSV_TrimmedAnchorLoading
extends Object
This method takes as input 2 csv files
It takes the data from FindTrimmedAnchorCoordinates.jar,
then calculates new coordinates using the old ref coordinates CSV file
used for loading.
The data is written to another csv file that will contain:
chr,trimmedStart,trimmedEnd,GeneStart,GeneEnd
The genes come from the old ref coordinates CSV file.
Here are the caluclations for this method:
Origial anchor 2:
start/end: 50358-56716 = len 6358
Regex:
start/end: 387-5359 = len 4972
New anchor 2:
start = oldStart + regexStart = 50358+387 = 50745
end = start + regexLen -1 = 50745 + 4972 -1 = 55716
number trimmed at start = 387
number trimmed at end = oldEnd - newEnd = 56716-55716 = 1000
Output:
Method creates the csv file needed for loading ref anchors to new trimmed DB.
- Author:
- lcj34