The Seven Bridges Knowledge Center

The Seven Bridges Platform is a simple solution for doing bioinformatics at industrial scale. But sometimes, everyone needs a little help.

Get Started

Create a tar archive

Overview

Learn how to organize your files and compile them as a tar file. There are two options to tar your files, depending on file organization:

  • Option 1: Use the SBG Decompressor tool if your files are in the same folder.
  • Option 2: Use the Data Cruncher if you need to reorganize your files before tar-ing.

Once you've created a tar archive, you can pass this as an input to your workflow. Learn more about adding inputs to a workflow.

Prerequisites

  • The files you wish to tar need to be uploaded to the Platform.
  • If your files are in the same folder, you must have the SBG Decompressor app as part of your workflow. Add the tool to a workflow and connect it to the tool which will use the unpacked tar archive as input files.

[Option 1] Tar files using SBG Compressor

Follow the procedure below if the files you wish to tar are uploaded to the same folder on the Platform. Note that you must have the SBG Decompresor tool as part of your workflow. Learn more about adding a tool to a workflow.

Conversely, if your files require a specific directory structure or further organization, see [Option 2] Tar files using the Data Cruncher.

Procedure

  1. Navigate to the project containing your files and analysis workflow.
  2. Select the Apps tab.
  3. Click the SBG Compressor tool.
  4. Click Run to create a draft task.
  5. Click the Define App Settings tab.
  6. From the Output format menu, select tar.
  7. (Optional) Specify the Output name for the tar archive.
  8. Switch to the Set Input Data tab.
  9. Click Select files.
  10. Select and confirm the files you want to tar.
  11. Click Run to start the task.

The SBG Compressor will run and tar the files. The tar archive will become available in your project files upon the completion of the task.

Next step

Once you've created a tar archive, you can pass this as an input to your workflow. Learn more about adding inputs to a workflow..

[Option 2] Tar files using Data Cruncher

Access Data Cruncher

  1. Open your project.
  2. Select the Interactive Analysis tab.
  3. Under Data Cruncher, click Open.
  4. Click Create new analysis.
  5. Enter a name for your analysis.
  6. Click Next to confirm the name.
  7. Click Next to confirm creating a new analysis.
  8. Click Start the analysis.

The Data Cruncher will prepare an instance and notify you once the instance is ready. This may take a few minutes.

Organize and tar files

  1. Once your instance is ready, click Open in editor in the top right corner.
  2. Select the Terminal icon and use the workspace to organize and tar files.
  3. Exit the workspace directory and enter your project directory:
cd ../projects/username/project-name
  1. Copy files from your project to your workspace:
cp * ../../../workspace
  1. Enter the workspace directory again:
cd ../../../workspace
  1. Create the folder structure and organize your files.
  2. Tar your files.
tar -cvf my-archive.tar main-folder
  1. Right click on the tar archive and click Save to Project.
  1. Click Stop Analysis in the upper right hand corner.

Once the analysis has been saved, the tar archive will become available in your project files.

Next step

Once you've created a tar archive, you can pass this as an input to your workflow. Learn more about adding inputs to a workflow..