Skip to content
Snippets Groups Projects
Commit 3179e533 authored by brinn's avatar brinn
Browse files

change: remove the external sample name from the tsv file names to make...

change: remove the external sample name from the tsv file names to make opening the files easier from a Perl / Bash script

SVN: 13994
parent 257cb77d
No related branches found
No related tags found
No related merge requests found
......@@ -255,7 +255,6 @@ class FlowLaneFeeder extends AbstractPostRegistrationDataSetHandlerForFileBasedU
SampleIdentifier identifier = SampleIdentifierFactory.parse(flowLaneSample.getIdentifier());
IEntityProperty[] properties = service.getPropertiesOfTopSampleRegisteredFor(identifier);
File dropBox = null;
String externalSampleName = null;
for (IEntityProperty property : properties)
{
PropertyType propertyType = property.getPropertyType();
......@@ -266,10 +265,6 @@ class FlowLaneFeeder extends AbstractPostRegistrationDataSetHandlerForFileBasedU
{
dropBox = transferDropBoxes.get(value);
}
if (code.equals(EXTERNAL_SAMPLE_NAME_KEY))
{
externalSampleName = value;
}
}
if (srfInfo.isEmpty() == false)
{
......@@ -279,10 +274,7 @@ class FlowLaneFeeder extends AbstractPostRegistrationDataSetHandlerForFileBasedU
builder.append(line).append('\n');
}
}
String metaFileName =
flowLaneSample.getCode()
+ (externalSampleName == null ? "" : "_" + externalSampleName)
+ META_DATA_FILE_TYPE;
String metaFileName = flowLaneSample.getCode() + META_DATA_FILE_TYPE;
metaFileName = asFileName(metaFileName);
FileUtilities.writeToFile(new File(flowLaneDataSet, metaFileName), builder.toString());
if (dropBox != null)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment