topaz icon indicating copy to clipboard operation
topaz copied to clipboard

Input micrographs as file

Open rfleiro opened this issue 5 years ago • 4 comments

Hi guys, great software :)

It would be great if topaz could take a file with a list of micrographs as input

Is this a possibility at all right now?

rfleiro avatar Apr 30 '20 06:04 rfleiro

At which stage? Topaz train accepts micrographs listed in an image list file. For downstream steps that expect micrographs to be listed on the command line (i.e. topaz extract), bash can do this for you using $(cat file.txt). For example,

topaz extract $(cat micrograph_list_file.txt)

will pass each line of "micrograph_list_file.txt" to topaz extract as a separate argument.

tbepler avatar Apr 30 '20 16:04 tbepler

Thanks for the quick reply

I realise now I didn't specify. I was wondering if a list file could be provided for pre-process and denoising

I am indeed passing the input mics using a similar approach, thanks for the suggestion

rfleiro avatar Apr 30 '20 20:04 rfleiro

I'll add passing micrograph inputs through a file to the list for extra features to add in the future. If this is something you're interested in working on, I'd be happy to accept a pull request with this feature.

In the meantime, the bash approach above seems like the best way to deal with this.

tbepler avatar Apr 30 '20 23:04 tbepler

I added this in commit 752c140a709c745dabdcc2232b6e9444a11e1ef1

tbepler avatar Oct 12 '20 03:10 tbepler