Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2022 06:33 PM
I couldn't figure out how to get pdf2image working either, instead i installed magick and converted pdf to png, then read in with matplotlib
%sh
cd /opt
wget https://imagemagick.org/archive/binaries/magick
chmod 777 magick%sh
/opt/magick convert $vcfFiles/$sample_id.pdf $vcfFiles/$sample_id.png import matplotlib.pyplot as plt
import matplotlib.image as img
im = img.imread(vcfFiles + sample_id + ".png")
plt.imshow(im)
display()cheers