Changeset 2577


Ignore:
Timestamp:
Aug 15, 2014, 8:02:21 AM (7 years ago)
Author:
Nicklas Nordborg
Message:

References #548: Register Demux and Merge as ended

To avoid too many top-level folders, use two additional levels of subfolders based on the first two and four characers in the SCANB id. For example: /33/3306/3306492.1 instead of /3306492.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/servlet/DemuxMergeServlet.java

    r2570 r2577  
    12791279            // Create FASTQ file links
    12801280            String dataFilesFolder = (String)Annotationtype.DATA_FILES_FOLDER.getAnnotationValue(dc, m);
    1281             Directory localDataDir = Directory.getNew(dc, new Path(SECONDARY_ANALYSIS_DIR+dataFilesFolder, Path.Type.DIRECTORY));
     1281            String prefixFolder = Rna.isSpecialRna(r.libName) ?
     1282              "/" + r.libName.substring(0, r.libName.indexOf('.'))
     1283              :  "/" + r.libName.substring(0, 2) + "/" + r.libName.substring(0, 4);
     1284            String baseFolder = dataFilesFolder.startsWith("/debug") ?
     1285              baseFolder = "/debug" + prefixFolder + dataFilesFolder.substring(6)
     1286              : prefixFolder + dataFilesFolder;
     1287            Directory localDataDir = Directory.getNew(dc, new Path(SECONDARY_ANALYSIS_DIR+baseFolder, Path.Type.DIRECTORY));
    12821288            for (String fileName : r.files)
    12831289            {
Note: See TracChangeset for help on using the changeset viewer.