File I/O Operations
Comprehensive file input and output capabilities supporting 15+ file formats for molecular data, experimental results, and analysis outputs.
File Operations
Essential file management operations for scientific workflows.
File Input/Output
Basic file reading and writing operations
- •Read text and binary files
- •Write data to files
- •File path handling
- •Encoding support
- •File existence checking
Folder Operations
Directory and folder management
- •List directory contents
- •Create new folders
- •File system navigation
- •Path validation
- •Recursive operations
Import/Export
Data import and export in multiple formats
- •Bulk file processing
- •Format conversion
- •Batch operations
- •Progress tracking
- •Error handling
Save Operations
Specialized save operations for different data types
- •Save DataFrames to CSV/Excel
- •Export molecular structures
- •Save plots and images
- •Save analysis results
- •Custom file formats
Supported File Formats
Comprehensive support for molecular, data, and visualization formats.
Molecular Formats
Supported formats for molecular formats
Structure Data File
MDL Molfile
Tripos Mol2
Protein Data Bank
PDBQT format
XYZ coordinates
Data Formats
Supported formats for data formats
Comma-separated values
Microsoft Excel
JavaScript Object Notation
Plain text files
Extensible Markup Language
Image Formats
Supported formats for image formats
Portable Network Graphics
Joint Photographic Experts Group
Scalable Vector Graphics
Portable Document Format
File I/O Nodes
Essential nodes for file input and output operations.
File Input
Read data from files on disk
Load data files for processing
Input Ports
No input ports
Output Ports
File contents or path
File metadata
Properties
| Property | Type | Default | Description |
|---|---|---|---|
| file_path | string | Path to input file | |
| encoding | string | utf-8 | File encoding |
| auto_detect | bool | true | Auto-detect file type |
Folder Input
Process entire directories of files
Batch process multiple files
Input Ports
No input ports
Output Ports
List of files in folder
Folder metadata
Properties
| Property | Type | Default | Description |
|---|---|---|---|
| folder_path | string | Path to folder | |
| recursive | bool | false | Include subdirectories |
| pattern | string | * | File pattern to match |
Save DataFrame
Export DataFrame to various formats
Export processed data for external analysis
Input Ports
DataFrame to save
Output Ports
Path to saved file
Properties
| Property | Type | Default | Description |
|---|---|---|---|
| file_path | string | Output file path | |
| format | string | csv | Output format (csv, excel, json) |
| index | bool | false | Include row index |
Save Molecule
Export molecular structures
Export molecular structures for external tools
Input Ports
Molecular structures
Output Ports
Path to saved file
Properties
| Property | Type | Default | Description |
|---|---|---|---|
| file_path | string | Output file path | |
| format | string | sdf | Molecular format (sdf, mol, pdb) |
| single_file | bool | true | Save all to one file |
Common File Workflows
Typical file processing patterns for scientific data management.
High-Throughput Data Processing
Process large numbers of data files efficiently
Workflow Steps:
- 1Select input folder with data files
- 2Filter files by type and date
- 3Process each file in parallel
- 4Aggregate results
- 5Export processed data
Required Nodes:
Molecular Database Creation
Build molecular databases from structure files
Workflow Steps:
- 1Import molecular structure files
- 2Calculate molecular descriptors
- 3Filter by properties
- 4Export to database format
- 5Generate molecular fingerprints
Required Nodes:
Automated Report Generation
Create automated analysis reports
Workflow Steps:
- 1Load analysis data
- 2Generate plots and visualizations
- 3Create summary statistics
- 4Export to PDF or HTML report
- 5Save all outputs to organized folder
Required Nodes:
Best Practices
Guidelines for efficient and reliable file operations.
File Path Management
Handle file paths correctly across different systems
- ✓Use absolute paths when possible
- ✓Handle path separators (/ vs \)
- ✓Validate file existence before reading
- ✓Use the session temp directory for temporary files
- ✓Check file permissions
Error Handling
Robust handling of file operation errors
- ✓Check if files exist before reading
- ✓Handle permission errors gracefully
- ✓Validate file formats
- ✓Provide meaningful error messages
- ✓Use try-catch blocks for file operations
Performance Optimization
Efficient file processing for large datasets
- ✓Use streaming for large files
- ✓Process files in chunks when possible
- ✓Close file handles promptly
- ✓Use appropriate buffer sizes
- ✓Monitor memory usage
Data Integrity
Ensure data integrity during file operations
- ✓Validate data after reading
- ✓Check file sizes and line counts
- ✓Verify data types and formats
- ✓Use checksums for critical files
- ✓Backup important data
Ready to Process Data?
Now that you understand file operations, learn about data processing and analysis.