[3dem] How to merge tif-files into an *.mrc-file
Kaelber, Jason
kaelber at bcm.edu
Fri Apr 7 09:25:50 PDT 2017
Dear Charlotte:
An easy way to do this is in EMAN2,
for i in seriesname*.tif
do e2proc2d.py ${i} new-stack.mrcs #default behaviour is to append to the stack
done
mv new-stacks.mrcs new-stack.mrc (or new-stack.st)
The reason for the mrcs extension is that EMAN2 thinks about mrc STACK (.mrcs) and mrc single image (.mrc) files separately based on file extension, even though an mrcs renamed to mrc is read fine by all the other software.
Note that if you do it in EMAN2 the default will be to output the data as floating point unless you tell it not to (which is not a problem for your subsequent processing in this case, but just FYI).
As for how to do it in IMOD, I haven't used tif2mrc so I can't comment on your particular error, but if you are only able to create single image mrc, you can just combine them with newstack afterward, i.e.
for i in seriesname*.tif
do j=`basename ${i} .tif`
tif2mrc ${i} ${j}.mrc
done
newstack seriesname*.mrc new-stack.mrc
rm seriesname*.mrc
Cheers,
Jason
________________________________
From: 3dem <3dem-bounces at ncmir.ucsd.edu> on behalf of 3dem-request at ncmir.ucsd.edu <3dem-request at ncmir.ucsd.edu>
Sent: Friday, April 7, 2017 7:47 AM
To: 3dem at ncmir.ucsd.edu
Subject: 3dem Digest, Vol 116, Issue 8
Send 3dem mailing list submissions to
3dem at ncmir.ucsd.edu
To subscribe or unsubscribe via the World Wide Web, visit
https://urldefense.proofpoint.com/v2/url?u=https-3A__mail.ncmir.ucsd.edu_mailman_listinfo_3dem&d=DwICAg&c=ZQs-KZ8oxEw0p81sqgiaRA&r=uK-VlaB2SqducnRahrFQHA&m=Dtekn0K6aqUL9Tc3499v0lyCZJmEgaKpqtbcdMk4Qsg&s=rJ2Lq9YAq78t_1fOR8tUa-acjzyH0vU5ENQ60AFzLtI&e=
or, via email, send a message with subject or body 'help' to
3dem-request at ncmir.ucsd.edu
You can reach the person managing the list at
3dem-owner at ncmir.ucsd.edu
When replying, please edit your Subject line so it is more specific
than "Re: Contents of 3dem digest..."
Today's Topics:
1. Re: How to merge tif-files into an *.mrc-file
(Charlotte Hamngren Blomqvist)
----------------------------------------------------------------------
Message: 1
Date: Fri, 7 Apr 2017 12:46:51 +0000
From: Charlotte Hamngren Blomqvist
<charlotte.hamngren.blomqvist at chalmers.se>
To: "3dem at ncmir.ucsd.edu" <3dem at ncmir.ucsd.edu>
Subject: Re: [3dem] How to merge tif-files into an *.mrc-file
Message-ID: <524F2E26-A5B4-490B-80A7-15F1BF4F2FF6 at chalmers.se>
Content-Type: text/plain; charset="utf-8"
Hello again,
I have some questions about the tf2mrc command which is a part of the iMOD package. The specifications say this:
NAME
tif2mrc - Make a MRC file from TIFF image files.
SYNOPSIS
tif2mrc [options] TIFF_input_files... MRC_output_file
DESCRIPTION
tif2mrc takes a series of TIFF files and converts them into an MRC
stack. tif2mrc can also convert a single multi-page TIFF file to an
MRC stack.
?.
I have 67 files named: seriesname_001.tif to seriesname_067.tif. How do I write for creating the mrc file? I tried writing in the file names of all the files at the ?TIFF_input_files... ?-position, but it only seem to accept one name at the position. I also tried using the ?cat? command for creating a tiff-stack of the images and then the mrc-file, but the resulting mrc-file is very small and doesn?t open in inspect3D.
Does this ring a bell?
Best,
Charlotte
Fr?n: 3dem <3dem-bounces at ncmir.ucsd.edu> p? uppdrag av Charlotte Hamngren Blomqvist <charlotte.hamngren.blomqvist at chalmers.se>
Datum: fredag 7 april 2017 11:01
Till: Sacha De Carlo <sachadecarlo at yahoo.com>, "3dem at ncmir.ucsd.edu" <3dem at ncmir.ucsd.edu>
?mne: Re: [3dem] How to merge tif-files into an *.mrc-file in Inspect3D
Sounds like a good idea.
I will try the tif2mrc command.
Thanks!
/Charlotte
Fr?n: Sacha De Carlo <sachadecarlo at yahoo.com>
Datum: fredag 7 april 2017 10:57
Till: Charlotte Hamngren Blomqvist <charlotte.hamngren.blomqvist at chalmers.se>, "3dem at ncmir.ucsd.edu" <3dem at ncmir.ucsd.edu>
?mne: Re: [3dem] How to merge tif-files into an *.mrc-file in Inspect3D
Why not use imod or em2em to convert your tif files into an MRC stack that can then be imported into inspect 3D?
Best
Sacha
Sent from Yahoo Mail for iPhone<https://urldefense.proofpoint.com/v2/url?u=https-3A__yho.com_footer0&d=DwICAg&c=ZQs-KZ8oxEw0p81sqgiaRA&r=uK-VlaB2SqducnRahrFQHA&m=Dtekn0K6aqUL9Tc3499v0lyCZJmEgaKpqtbcdMk4Qsg&s=QjQfGF1cEDIJ8V3O6m25ozQ-2YziIhuGMh24ZNHspo4&e= >
On Friday, April 7, 2017, 10:41 AM, Charlotte Hamngren Blomqvist <charlotte.hamngren.blomqvist at chalmers.se> wrote:
Dear Hivemind,
I want to use computer-generated projections in order to quantify our ET method. Now I want to load the projected images (tif) into the software using the concert/merge files option. I get the error message: "Operation failed Reason: Error reading file". What do I need to change in order for this to work? My version is v. 3.0.0.3494REL of Inspect3D.
Best regards
Charlotte Hamngren Blomqvist
_______________________
Charlotte Hamngren Blomqvist, PhD
Researcher
Department of Physics
Eva Olsson group
Chalmers University of Technology
SE-41296 Gothenburg, Sweden
Tel +46-(0)31 772 51 80<tel:+46-31%20772%2051%2080>
www.chalmers.se<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.chalmers.se_&d=DwICAg&c=ZQs-KZ8oxEw0p81sqgiaRA&r=uK-VlaB2SqducnRahrFQHA&m=Dtekn0K6aqUL9Tc3499v0lyCZJmEgaKpqtbcdMk4Qsg&s=Ml90SbUMPXAKLBUsO5qP5sqv-D7K20tXqbJNpjz9AKM&e= >
E-mail: charlotte.hamngren.blomqvist at chalmers.se<mailto:charlotte.hamngren at chalmers.se>
Visiting address: Fysikgr?nd 3, room F4417b
_______________________________________________
3dem mailing list
3dem at ncmir.ucsd.edu<mailto:3dem at ncmir.ucsd.edu>
https://urldefense.proofpoint.com/v2/url?u=https-3A__mail.ncmir.ucsd.edu_mailman_listinfo_3dem&d=DwICAg&c=ZQs-KZ8oxEw0p81sqgiaRA&r=uK-VlaB2SqducnRahrFQHA&m=Dtekn0K6aqUL9Tc3499v0lyCZJmEgaKpqtbcdMk4Qsg&s=rJ2Lq9YAq78t_1fOR8tUa-acjzyH0vU5ENQ60AFzLtI&e=
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://urldefense.proofpoint.com/v2/url?u=http-3A__mail.ncmir.ucsd.edu_pipermail_3dem_attachments_20170407_12eb103f_attachment.html&d=DwICAg&c=ZQs-KZ8oxEw0p81sqgiaRA&r=uK-VlaB2SqducnRahrFQHA&m=Dtekn0K6aqUL9Tc3499v0lyCZJmEgaKpqtbcdMk4Qsg&s=t360M-cwniFCO6p9iIgfJOYxsJmnvFFy4HPJJxA-vbA&e= >
------------------------------
Subject: Digest Footer
_______________________________________________
3dem mailing list
3dem at ncmir.ucsd.edu
https://urldefense.proofpoint.com/v2/url?u=https-3A__mail.ncmir.ucsd.edu_mailman_listinfo_3dem&d=DwICAg&c=ZQs-KZ8oxEw0p81sqgiaRA&r=uK-VlaB2SqducnRahrFQHA&m=Dtekn0K6aqUL9Tc3499v0lyCZJmEgaKpqtbcdMk4Qsg&s=rJ2Lq9YAq78t_1fOR8tUa-acjzyH0vU5ENQ60AFzLtI&e=
------------------------------
End of 3dem Digest, Vol 116, Issue 8
************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ncmir.ucsd.edu/pipermail/3dem/attachments/20170407/7c74cada/attachment-0001.html>
More information about the 3dem
mailing list