How to get Dependent(Sequence) module list of a specific module programmatically in Magento 2?

You can get the list of dependent module and schema version for a specific module using programmatically by Magento\Framework\Module\ModuleList class.

You can manually check the list of the dependent module for a module using an etc/module.xml file.

Let’s we Check the dependency list for a Catalog Module. you can check the module.xml file for catalog module is,

you can check above XML, There are four modules on which catalog is dependent. 

You can get schema version and sequence list of the module using ModuleList.php file.

Check via Programmatically,

Call function from PHP file or template file, $this->getAllDependentModule();

Output will be array of all the Sequence module,

Get all the active module list in Magento 2.