Skip to main content

Helper functions for BakingTray and StitchIt

Project description

StitchIt Python Tools

The directory contains Python code for managing BakingTray serial-section 2p data. The main functions of interest are compressRawData.py and transferToServer.py, which are aimed at end users of the microscope. The recipe.py and tools.py modules support these and are aimed at developers.

Install instructions

$ sudo pip install btpytools

Running as sudo allows the installer to add the most important programs to your path, allowing them to be run at the system command line:

  • transferToServer
  • compressRawData
  • summariseAcqs

In other words, after pip installing you can run compressRawData at the command line.

Usage instructions

Compressing the raw data directory

cd to the sample directory at the command line and run compressRawData. This requires you to have installed lbzip2, which runs parallel bzip. Likely only works on Linux.

$ cd /mnt/data/BakingTrayStacks/CC_125_1__125_2/ 
$ compressRawData  

Sending data to a remote server

The server should be mounted locally to a mount point writable by the user. The tranfer is via rsync. The command just ensures no uncompressed raw data or uncropped stacks are copied. It brute-force retries if there is a failure for some reason.

First cd to the directory which constains your samples. Not the sample directory. e.g.

$ cd /mnt/data/BakingTrayStacks

You can now run in either of the following two ways (either one acquisition or multiple acquisitions)

$ transferToServer RC_RabiesBrains01 /mnt/server/user/data/histology
$ transferToServer RC_RabiesBrains01 RC_TwoProbeTracks_test RC_MyOldSample /mnt/server/user/data/histology

Do not do the following as it will not send compressed raw data should you have any:

$ transferToServer RC_RabiesBrains01/sample01 RC_RabiesBrains01/sample02 /mnt/server/user/data/histology

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

btpytools-0.1.2.tar.gz (19.9 kB view details)

Uploaded Source

File details

Details for the file btpytools-0.1.2.tar.gz.

File metadata

  • Download URL: btpytools-0.1.2.tar.gz
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5

File hashes

Hashes for btpytools-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2a9285de4b19ee9f6d67d8e32d07ab21572b8fa36b16df885805ff4a7a6226b7
MD5 99042f51647a9675fb3261dbeeb6f131
BLAKE2b-256 1036a7e8b5a7e2909ceed4fc99bdf6a5c72d004d4b19c5a0d67766c3c6d4a4f3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page